You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
moduleFoowhereimport qualified Control.Monad.StateasSTimport qualified Control.Monad.State.ClassasSTident::foralla. a->a
ident a = a
ident'::Number->Number
ident' a = a
then
a::ST.StateNumberUnit
a = ST.modify ident'
compiles/works fine.
However,
a::ST.StateNumberUnit
a = ST.modify ident
complains that
No instance found for Control.Monad.State.Class.MonadState u7 (Control.Monad.State.Trans.StateT Prim.Number Data.Identity.Identity)
.
(Both versions work in Haskell.)
The text was updated successfully, but these errors were encountered:
I think the solution to this might be functional dependencies, which would make this a duplicate of purescript/purescript#1580. Not entirely sure, though.
If I define
then
compiles/works fine.
However,
complains that
.
(Both versions work in Haskell.)
The text was updated successfully, but these errors were encountered: