owoify-hs-1.1.0.0: Turn any English text into nonsensical babyspeaks.
Safe HaskellSafe-Inferred
LanguageHaskell2010

Data.Owoify.Internal.Parser.OwoifyParser

Synopsis

Documentation

count :: (Foldable t, Monad m, OwoifyError e) => Int -> t (InnerWord -> m InnerWord) -> OwoifyParser e [m InnerWord] Source #

Replicate owoify parser according to the specified length (n) and a collection of owoify functions.

data OError Source #

A simple type representing errors that occur during owoification.

Constructors

EOF 
ParseError Text 

Instances

Instances details
Show OError Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

OwoifyError OError Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

class OwoifyError e Source #

Represents those types denoting errors when owoifying.

Minimal complete definition

eof, parseError

Instances

Instances details
OwoifyError OError Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

data OwoifyParser e a Source #

Instances

Instances details
Applicative (OwoifyParser e) Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

Methods

pure :: a -> OwoifyParser e a #

(<*>) :: OwoifyParser e (a -> b) -> OwoifyParser e a -> OwoifyParser e b #

liftA2 :: (a -> b -> c) -> OwoifyParser e a -> OwoifyParser e b -> OwoifyParser e c #

(*>) :: OwoifyParser e a -> OwoifyParser e b -> OwoifyParser e b #

(<*) :: OwoifyParser e a -> OwoifyParser e b -> OwoifyParser e a #

Functor (OwoifyParser e) Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

Methods

fmap :: (a -> b) -> OwoifyParser e a -> OwoifyParser e b #

(<$) :: a -> OwoifyParser e b -> OwoifyParser e a #

Monad (OwoifyParser e) Source # 
Instance details

Defined in Data.Owoify.Internal.Parser.OwoifyParser

Methods

(>>=) :: OwoifyParser e a -> (a -> OwoifyParser e b) -> OwoifyParser e b #

(>>) :: OwoifyParser e a -> OwoifyParser e b -> OwoifyParser e b #

return :: a -> OwoifyParser e a #

runParser :: OwoifyError e => OwoifyParser e a -> [Text] -> Either e (OwoifyResult a) Source #

Executes (unwraps) the parser inside the monad.