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

Safe HaskellSafe-Inferred
LanguageHaskell2010

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 a Source

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.