C Maeder c.maeder at jacobs-university.de
Mon Feb 16 13:22:23 UTC 2015

Hi Ivan,

could you make a new release of fgl that works with ghc-7.10?

I could compile it locally after the following changes:


+import Control.Applicative
+import Control.Monad (ap, liftM)

+instance Monad m => Functor (GT m g) where
+    fmap = liftM
+instance Monad m => Applicative (GT m g) where
+    pure = return
+    (<*>) = ap


-{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances #-}
+{-# LANGUAGE MultiParamTypeClasses, FlexibleInstances, FlexibleContexts #-}

I'm not sure why FlexibleContexts is now needed and I'm not sure how the 
package version number should change.

Cheers Christian

More information about the Libraries mailing list