I just build ghcjs 8.8 from source and I'm trying to build a library dependent on MMorph.
Cabal errors with:
Configuring library for mmorph-1.1.3..
Preprocessing library for mmorph-1.1.3..
Building library for mmorph-1.1.3..
[1 of 2] Compiling Control.Monad.Morph ( src/Control/Monad/Morph.hs, dist/build/Control/Monad/Morph.js_o )
src/Control/Monad/Morph.hs:80:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Trans.Error’ is deprecated:
Use Control.Monad.Trans.Except instead
|
80 | import qualified Control.Monad.Trans.Error as E
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Control/Monad/Morph.hs:83:1: warning: [-Wdeprecations]
Module ‘Control.Monad.Trans.List’ is deprecated:
This transformer is invalid on most monads
|
83 | import qualified Control.Monad.Trans.List as L
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
src/Control/Monad/Morph.hs:119:20: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
119 | instance MFunctor (E.ErrorT e) where
| ^^^^^^^^
src/Control/Monad/Morph.hs:120:19: warning: [-Wdeprecations]
In the use of data constructor ‘ErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
120 | hoist nat m = E.ErrorT (nat (E.runErrorT m))
| ^^^^^^^^
src/Control/Monad/Morph.hs:120:34: warning: [-Wdeprecations]
In the use of ‘runErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
120 | hoist nat m = E.ErrorT (nat (E.runErrorT m))
| ^^^^^^^^^^^
src/Control/Monad/Morph.hs:128:19: warning: [-Wdeprecations]
In the use of type constructor or class ‘ListT’
(imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
128 | instance MFunctor L.ListT where
| ^^^^^^^
src/Control/Monad/Morph.hs:129:19: warning: [-Wdeprecations]
In the use of data constructor ‘ListT’
(imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
129 | hoist nat m = L.ListT (nat (L.runListT m))
| ^^^^^^^
src/Control/Monad/Morph.hs:129:33: warning: [-Wdeprecations]
In the use of ‘runListT’ (imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
129 | hoist nat m = L.ListT (nat (L.runListT m))
| ^^^^^^^^^^
src/Control/Monad/Morph.hs:240:11: warning: [-Wdeprecations]
In the use of type constructor or class ‘Error’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
240 | instance (E.Error e) => MMonad (E.ErrorT e) where
| ^^^^^^^
src/Control/Monad/Morph.hs:240:33: warning: [-Wdeprecations]
In the use of type constructor or class ‘ErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
240 | instance (E.Error e) => MMonad (E.ErrorT e) where
| ^^^^^^^^
src/Control/Monad/Morph.hs:241:17: warning: [-Wdeprecations]
In the use of data constructor ‘ErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
241 | embed f m = E.ErrorT (do
| ^^^^^^^^
src/Control/Monad/Morph.hs:242:14: warning: [-Wdeprecations]
In the use of ‘runErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
242 | x <- E.runErrorT (f (E.runErrorT m))
| ^^^^^^^^^^^
src/Control/Monad/Morph.hs:242:30: warning: [-Wdeprecations]
In the use of ‘runErrorT’
(imported from Control.Monad.Trans.Error):
Deprecated: "Use Control.Monad.Trans.Except instead"
|
242 | x <- E.runErrorT (f (E.runErrorT m))
| ^^^^^^^^^^^
src/Control/Monad/Morph.hs:259:17: warning: [-Wdeprecations]
In the use of type constructor or class ‘ListT’
(imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
259 | instance MMonad L.ListT where
| ^^^^^^^
src/Control/Monad/Morph.hs:260:17: warning: [-Wdeprecations]
In the use of data constructor ‘ListT’
(imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
260 | embed f m = L.ListT (do
| ^^^^^^^
src/Control/Monad/Morph.hs:261:14: warning: [-Wdeprecations]
In the use of ‘runListT’ (imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
261 | x <- L.runListT (f (L.runListT m))
| ^^^^^^^^^^
src/Control/Monad/Morph.hs:261:29: warning: [-Wdeprecations]
In the use of ‘runListT’ (imported from Control.Monad.Trans.List):
Deprecated: "This transformer is invalid on most monads"
|
261 | x <- L.runListT (f (L.runListT m))
| ^^^^^^^^^^
[2 of 2] Compiling Control.Monad.Trans.Compose ( src/Control/Monad/Trans/Compose.hs, dist/build/Control/Monad/Trans/Compose.js_o )
src/Control/Monad/Trans/Compose.hs:77:5: error:
‘fail’ is not a (visible) method of class ‘Monad’
|
77 | fail e = ComposeT (Prelude.fail e)
| ^^^^
cabal: Failed to build mmorph-1.1.3 (which is required by lucid-2.9.12). See
the build log above for details.
Hello!
I just build ghcjs 8.8 from source and I'm trying to build a library dependent on MMorph.
Cabal errors with:
I think it has something to do with this?
All the best
James