Skip to content

Commit

Permalink
Make more pointfree
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanGlScott committed Dec 15, 2014
1 parent 7745f66 commit 3db692c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resourcet/Control/Monad/Trans/Resource/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ instance MonadBaseControl b m => MonadBaseControl b (ResourceT m) where
liftBaseWith f = ResourceT $ \reader' ->
liftBaseWith $ \runInBase ->
f $ runInBase . (\(ResourceT r) -> r reader' )
restoreM base = ResourceT $ const $ restoreM base
restoreM = ResourceT . const . restoreM

#define GO(T) instance (MonadResource m) => MonadResource (T m) where liftResourceT = lift . liftResourceT
#define GOX(X, T) instance (X, MonadResource m) => MonadResource (T m) where liftResourceT = lift . liftResourceT
Expand Down

0 comments on commit 3db692c

Please sign in to comment.