DPutils-0.1.0.0: utilities for DP

Safe HaskellNone
LanguageHaskell2010

Streaming.Primitive

Contents

Orphan instances

(Monad m, PrimMonad m, Functor f) => PrimMonad (Stream f m) Source #

Orphan instance providing a primitive monad instance for streams. Allows impurely folds into mutable vectors from streams.

Instance details

Associated Types

type PrimState (Stream f m) :: Type #

Methods

primitive :: (State# (PrimState (Stream f m)) -> (#State# (PrimState (Stream f m)), a#)) -> Stream f m a #