Make fundep in the example make sense

This commit is contained in:
Andrzej Rybczak 2023-09-14 01:08:38 +02:00
parent 6e61d38224
commit 5d677d51d7

View File

@ -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