Skip to content

Commit

Permalink
Haskell/GADT: produce mtl-2.3 compatible code
Browse files Browse the repository at this point in the history
  • Loading branch information
andreasabel committed Feb 27, 2023
1 parent da0d380 commit d31939d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/src/BNFC/Backend/HaskellGADT.hs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ composOp composOpMod = unlines
"",
"import Prelude",
"",
"import Control.Monad.Identity",
"import Control.Monad",
"import Data.Functor.Identity",
"",
"class Compos t where",
" compos :: (forall a. a -> m a) -> (forall a b. m (a -> b) -> m a -> m b)",
Expand Down

0 comments on commit d31939d

Please sign in to comment.