-
Notifications
You must be signed in to change notification settings - Fork 374
Open
Description
Sorry if it was discussed before, after scanning the issues I didn't find anything on the subject.
The motivation comes from the last addition: the spec for chainRec which I find hard to understand
chainRec :: ChainRec m => ((a -> c, b -> c, a) -> m c, a) -> m bwith respect to
class Monad m <= MonadRec m where
tailRecM :: forall a b. (a -> m (Either a b)) -> a -> m bRelevant issues
I understand the benefits of not depending on a particular implementation of Either but why fantasy-land doesn't provide a spec for Either in the first place?
For example writing the spec for Unfoldable would be problematic (Maybe AND Tuple)
class Unfoldable t where
unfoldr :: forall a b. (b -> Maybe (Tuple a b)) -> b -> t aWe have great libraries out there for Maybe, Either, Task, etc... but there's no standard for them.
Would it be a good idea to add specs for these concrete types?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels