Module

Glitter

Package
purescript-glitter
Repository
hrb90/purescript-glitter

#glit Source

glit :: forall a. Generic a => Parser String a -> String -> Either String a

Turns a Parser String a into a function String -> Either String a for consumption by sparkle

#glitM Source

glitM :: forall m s a. Generic a => StringLike s => Monad m => ParserT s m a -> s -> m (Either String a)

Turns a Parser s m a into a function s -> m (Either String a) for consumption by sparkle, if sparkle can represent m.

#glitter Source

glitter :: forall eff a. Generic a => String -> Parser String a -> Eff (channel :: CHANNEL, dom :: DOM | eff) Unit

Creates an interactive testing page for a Parser String a using sparkle/

#glit' Source

glit' :: forall b a. Generic b => Parser String a -> (a -> b) -> String -> Either String b

Like glit, but takes an extra argument transforming the parser output.

#glitM' Source

glitM' :: forall m s b a. Generic b => StringLike s => Monad m => ParserT s m a -> (a -> b) -> s -> m (Either String b)

Like glitM, but takes an extra argument transforming the parser output.

#glitter' Source

glitter' :: forall eff b a. Generic b => String -> Parser String a -> (a -> b) -> Eff (channel :: CHANNEL, dom :: DOM | eff) Unit

Like glitter, but takes an extra argument transforming the parser output.

Modules
Glitter