From e73262052d8d0c9bfc30ca74c879477aadce0798 Mon Sep 17 00:00:00 2001 From: David Terei <davidterei@gmail.com> Date: Thu, 4 Aug 2011 14:16:29 -0700 Subject: [PATCH] Use Safe Haskell for GHC >= 7.2 --- System/Cmd.hs | 4 ++++ System/Process.hs | 1 + System/Process/Internals.hs | 6 +++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/System/Cmd.hs b/System/Cmd.hs index 5fba0646..a00e2289 100644 --- a/System/Cmd.hs +++ b/System/Cmd.hs @@ -1,3 +1,7 @@ +{-# LANGUAGE CPP #-} +#if __GLASGOW_HASKELL__ >= 701 +{-# LANGUAGE Trustworthy #-} +#endif ----------------------------------------------------------------------------- -- | -- Module : System.Cmd diff --git a/System/Process.hs b/System/Process.hs index 45401d49..bba4f520 100644 --- a/System/Process.hs +++ b/System/Process.hs @@ -1,5 +1,6 @@ {-# LANGUAGE CPP, ForeignFunctionInterface #-} #if __GLASGOW_HASKELL__ >= 701 +{-# LANGUAGE Trustworthy #-} -- not available prior to 7.1 {-# LANGUAGE InterruptibleFFI #-} #endif diff --git a/System/Process/Internals.hs b/System/Process/Internals.hs index b68f268a..36aec6b4 100644 --- a/System/Process/Internals.hs +++ b/System/Process/Internals.hs @@ -1,4 +1,8 @@ -{-# LANGUAGE CPP, ForeignFunctionInterface, RecordWildCards #-} +{-# LANGUAGE CPP #-} +#if __GLASGOW_HASKELL__ >= 701 +{-# LANGUAGE Trustworthy #-} +#endif +{-# LANGUAGE ForeignFunctionInterface, RecordWildCards #-} {-# OPTIONS_HADDOCK hide #-} {-# OPTIONS_GHC -w #-} -- XXX We get some warnings on Windows -- GitLab