matcha-0.0.0.1: A micro web framework based on pattern matching
Safe HaskellSafe-Inferred
LanguageHaskell2010

Matcha.Query

Documentation

data Parser a where Source #

Constructors

FMap :: (a -> b) -> Parser a -> Parser b 
Pure :: a -> Parser a 
Apply :: Parser (a -> b) -> Parser a -> Parser b 
Optional :: Parser a -> Parser (Maybe a) 
Option :: a -> Parser a -> Parser a 
Param :: (FromHttpApiData a, ToHttpApiData a) => Text -> Parser a 
Flag :: Text -> Parser () 

Instances

Instances details
Applicative Parser Source # 
Instance details

Defined in Matcha.Query

Methods

pure :: a -> Parser a #

(<*>) :: Parser (a -> b) -> Parser a -> Parser b #

liftA2 :: (a -> b -> c) -> Parser a -> Parser b -> Parser c #

(*>) :: Parser a -> Parser b -> Parser b #

(<*) :: Parser a -> Parser b -> Parser a #

Functor Parser Source # 
Instance details

Defined in Matcha.Query

Methods

fmap :: (a -> b) -> Parser a -> Parser b #

(<$) :: a -> Parser b -> Parser a #

data Error Source #

Constructors

Error 

on :: Parser a -> Query -> (Error -> b) -> (a -> b) -> b Source #