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
generateA::Applicativef=>Int-> (Int->fa) ->f (Vectora)
-- specification
generateA n f =sequenceA (generate n f)
The Monad m constraint on generateM seems to flow from unstreamM. unstreamM, in turn, absolutely requires a Monad m constraint because of the way general streams are structured. For generating vectors, this all seems a bit sad, since the exact shape of the result stream is known in advance (a specific number of Yields followed by Done). I don't know that there's any way around that annoyance.
The text was updated successfully, but these errors were encountered:
The
Monad m
constraint ongenerateM
seems to flow fromunstreamM
.unstreamM
, in turn, absolutely requires aMonad m
constraint because of the way general streams are structured. For generating vectors, this all seems a bit sad, since the exact shape of the result stream is known in advance (a specific number ofYield
s followed byDone
). I don't know that there's any way around that annoyance.The text was updated successfully, but these errors were encountered: