Skip to content

Commit

Permalink
Mask liftA2 only since base-4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasdicioccio committed Apr 27, 2024
1 parent 16b8524 commit a9cee5d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Import/Headers.hs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ module Dhall.Import.Headers
, toOriginHeaders
) where

#if (MIN_VERSION_base(4,10,0))
#if (MIN_VERSION_base(4,19,0))
import Control.Applicative (Alternative (..))
#else
import Control.Applicative (Alternative (..), liftA2)
Expand Down
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Marshal/Decode.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ module Dhall.Marshal.Decode
) where


#if (MIN_VERSION_base(4,10,0))
#if (MIN_VERSION_base(4,19,0))
import Control.Applicative (empty)
#else
import Control.Applicative (empty, liftA2)
Expand Down
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Parser/Combinators.hs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ module Dhall.Parser.Combinators
) where


#if (MIN_VERSION_base(4,10,0))
#if (MIN_VERSION_base(4,19,0))
import Control.Applicative (Alternative (..))
#else
import Control.Applicative (Alternative (..), liftA2)
Expand Down
2 changes: 1 addition & 1 deletion dhall/src/Dhall/Parser/Expression.hs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-- | Parsing Dhall expressions.
module Dhall.Parser.Expression where

#if (MIN_VERSION_base(4,10,0))
#if (MIN_VERSION_base(4,19,0))
import Control.Applicative (Alternative (..), optional)
#else
import Control.Applicative (Alternative (..), liftA2, optional)
Expand Down

0 comments on commit a9cee5d

Please sign in to comment.