Skip to content

Commit

Permalink
Get rid of CPP by restricting the "base" dep
Browse files Browse the repository at this point in the history
  • Loading branch information
nikita-volkov committed Aug 26, 2021
1 parent 18c9745 commit 2a2739a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions library/ListT.hs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{-# LANGUAGE CPP #-}
module ListT
(
ListT(..),
Expand Down Expand Up @@ -149,10 +148,6 @@ instance Monad m => Monad (ListT m) where
return Nothing
Just (h1, t1) ->
uncons $ k2 h1 <> go t1
#if !MIN_VERSION_base(4,11,0)
fail _ =
mempty
#endif

instance Monad m => MonadFail (ListT m) where
fail _ =
Expand Down
2 changes: 1 addition & 1 deletion list-t.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ library
other-modules:
ListT.Prelude
build-depends:
base >=4.9 && <5,
base >=4.11 && <5,
foldl >=1 && <2,
mmorph ==1.*,
monad-control >=0.3 && <2,
Expand Down

0 comments on commit 2a2739a

Please sign in to comment.