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
This is a known feature request that I have in my rough roadmap. This issue won't be the major factor in any decision about when/if this gets added, so I am going to close in an effort to clear out the issues here.
Earlier on, it was okay to handle feature requests on this repo, but it's not working out anymore. So I want this repo to be more for bugs and such. We will do project and feature planning in a different way.
I don't know if this is a parser bug or if Elm just doesn't support this, but the following yield parse errors:
type Functor f = { map : (a -> b) -> f a -> f b }
and
data Ap f a = Ap (f a)
This means you can't define higher-kinded things like
Functor
/Applicative
/Monad
/Foldable
and do dictionary-passing style for ad-hoc polymorphism.You can do first-order things like Monoid though:
type Monoid m = { unit : m, op : m -> m -> m }
The text was updated successfully, but these errors were encountered: