We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00addd4 commit ebececeCopy full SHA for ebecece
src/compiler/api/GF/Data/Operations.hs
@@ -50,6 +50,7 @@ import qualified Data.Map as Map
50
import Data.Map (Map)
51
--import Control.Applicative(Applicative(..))
52
import Control.Monad (liftM,liftM2) --,ap
53
+import Control.Monad.Fix
54
55
import GF.Data.ErrM
56
import GF.Data.Relation
@@ -237,6 +238,10 @@ instance ErrorMonad Err where
237
238
handle a@(Ok _) _ = a
239
handle (Bad i) f = f i
240
241
+instance MonadFix Err where
242
+ mfix f = let res@(~(Ok x)) = f x in res
243
+
244
245
liftErr e = err raise return e
246
{-
247
instance ErrorMonad (STM s) where
0 commit comments