mirror of
https://github.com/haskell-effectful/effectful.git
synced 2024-11-26 15:25:46 +03:00
Make fundep in the example make sense
This commit is contained in:
parent
6e61d38224
commit
5d677d51d7
@ -357,7 +357,7 @@ import Effectful.Internal.Utils
|
|||||||
-- >>> :set -XFunctionalDependencies
|
-- >>> :set -XFunctionalDependencies
|
||||||
--
|
--
|
||||||
-- >>> :{
|
-- >>> :{
|
||||||
-- class Monad m => MonadInput i m | i -> m where
|
-- class Monad m => MonadInput i m | m -> i where
|
||||||
-- input :: m i
|
-- input :: m i
|
||||||
-- :}
|
-- :}
|
||||||
--
|
--
|
||||||
@ -371,7 +371,7 @@ import Effectful.Internal.Utils
|
|||||||
-- ...
|
-- ...
|
||||||
-- ...Illegal instance declaration for ‘MonadInput i (Eff es)’...
|
-- ...Illegal instance declaration for ‘MonadInput i (Eff es)’...
|
||||||
-- ... The liberal coverage condition fails in class ‘MonadInput’...
|
-- ... The liberal coverage condition fails in class ‘MonadInput’...
|
||||||
-- ... for functional dependency: ‘i -> m’...
|
-- ... for functional dependency: ‘m -> i’...
|
||||||
-- ...
|
-- ...
|
||||||
--
|
--
|
||||||
-- However, there exists a [dirty
|
-- However, there exists a [dirty
|
||||||
|
Loading…
Reference in New Issue
Block a user