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
The problem is, GHC can't figure out how to fmap the first a out of Scope (Name a ()) Program a.
The >>>= operator will leave the Name a () intact as well.
I can make it Name MyName (), but this kinda defeats the purpose of the Name wrapper.
If the Scope' (bound :: *) (f :: * -> * -> *) (name :: *) (a :: *) is a Bifunctor instead, thus preserving the names by default, this would allow us to keep the oldest names, erase them with lmap (const ()) or do any possible mapping separately from the current name set.
The Monad instance in that case would allow to only work with "latest" names.
The text was updated successfully, but these errors were encountered:
The problem is, GHC can't figure out how to
fmap
the firsta
out ofScope (Name a ()) Program a
.The
>>>=
operator will leave theName a ()
intact as well.I can make it
Name MyName ()
, but this kinda defeats the purpose of theName
wrapper.If the
Scope' (bound :: *) (f :: * -> * -> *) (name :: *) (a :: *)
is aBifunctor
instead, thus preserving the names by default, this would allow us to keep the oldest names, erase them withlmap (const ())
or do any possible mapping separately from the current name set.The
Monad
instance in that case would allow to only work with "latest" names.The text was updated successfully, but these errors were encountered: