chatty-text-0.6: Provides some classes and types for dealing with text, using the fundaments of Chatty.

Safe HaskellSafe-Inferred

Text.Chatty.Parser.Carrier

Description

Provides a nondeterministic MonadParser instance.

Synopsis

Documentation

data CarrierT m a Source

Constructors

Carry 

Fields

carry :: String -> m (a, String)
 

runCarrierT :: (MonadPlus m, Foldable m) => String -> CarrierT m a -> m aSource

Run a CarrierT with its full input string.

embedCarrierT :: (MonadPlus n, Foldable n, ChScanner m) => CarrierT n a -> m (n a)Source

Embed the CarrierT into a running MonadScanner instance.