Skip to content

Commit

Permalink
Merge pull request #221 from rimmington/safe-compat
Browse files Browse the repository at this point in the history
Mark Control.Monad.Trans.Resource.Internal as Trustworthy for GHC < 7.07
  • Loading branch information
snoyberg committed Jul 31, 2015
2 parents 6421a26 + f863e08 commit 414412b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 0 additions & 2 deletions resourcet/Control/Monad/Trans/Resource.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
#if __GLASGOW_HASKELL__ >= 704
{-# LANGUAGE ConstraintKinds #-}
#endif
#if __GLASGOW_HASKELL__ >= 707
{-# LANGUAGE Safe #-}
#endif
-- | Allocate resources which are guaranteed to be released.
--
-- For more information, see <https://www.fpcomplete.com/user/snoyberg/library-documentation/resourcet>.
Expand Down
4 changes: 3 additions & 1 deletion resourcet/Control/Monad/Trans/Resource/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,12 @@
{-# LANGUAGE TypeFamilies #-}
{-# LANGUAGE UndecidableInstances #-}
{-# LANGUAGE RankNTypes #-}
-- Can only turn on SafeHaskell when using a newer GHC, otherwise we get build
-- Can only mark as Safe when using a newer GHC, otherwise we get build
-- failures due to the manual Typeable instance below.
#if __GLASGOW_HASKELL__ >= 707
{-# LANGUAGE Safe #-}
#else
{-# LANGUAGE Trustworthy #-}
#endif

module Control.Monad.Trans.Resource.Internal(
Expand Down
2 changes: 0 additions & 2 deletions resourcet/Data/Acquire.hs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
{-# LANGUAGE CPP #-}
#if __GLASGOW_HASKELL__ >= 707
{-# LANGUAGE Safe #-}
#endif
-- | This was previously known as the Resource monad. However, that term is
-- confusing next to the ResourceT transformer, so it has been renamed.
module Data.Acquire
Expand Down

0 comments on commit 414412b

Please sign in to comment.