Skip to content

Commit

Permalink
Drop mtl in favor of transformers
Browse files Browse the repository at this point in the history
[#15] mtl 2.3 has a botched Control.Monad.Except export. We could work
around it with e.g. CPP, but luckily, we can also just use transformers
directly instead.
  • Loading branch information
jonascarpay committed May 23, 2022
1 parent 0c47dfd commit 24d2b56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions aeson-commit.cabal
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ library
default-language: Haskell2010
ghc-options: -Wall -Wno-name-shadowing
build-depends:
aeson >=1.4 && <2.1
, base >=4.10 && <5
, mtl >=2.2 && <3
, text >=1.2 && <2
aeson >=1.4 && <2.1
, base >=4.10 && <5
, text >=1.2 && <2
, transformers >=0.5 && <0.7

test-suite tasty
type: exitcode-stdio-1.0
Expand Down
4 changes: 3 additions & 1 deletion src/Data/Aeson/Commit.hs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@ module Data.Aeson.Commit
where

import Control.Applicative (Alternative (..))
import Control.Monad.Except
import Control.Monad.Trans.Class (lift)
import Control.Monad.Trans.Except
import Data.Aeson.Types
import Data.Void (Void, absurd)

#if MIN_VERSION_aeson(2,0,0)
import qualified Data.Aeson.Key as Key
#else
Expand Down

0 comments on commit 24d2b56

Please sign in to comment.