hs-watchman-0.0.1.0: Client library for Facebook's Watchman tool
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Directory.Watchman.BSER.Parser

Synopsis

Documentation

data Parser a Source #

Instances

Instances details
Monad Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

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

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

return :: a -> Parser a #

Functor Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

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

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

MonadFail Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

fail :: String -> Parser a #

Applicative Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

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 #

Alternative Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

empty :: Parser a #

(<|>) :: Parser a -> Parser a -> Parser a #

some :: Parser a -> Parser [a] #

many :: Parser a -> Parser [a] #

MonadPlus Parser Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

mzero :: Parser a #

mplus :: Parser a -> Parser a -> Parser a #

Semigroup (Parser a) Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

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

sconcat :: NonEmpty (Parser a) -> Parser a #

stimes :: Integral b => b -> Parser a -> Parser a #

Monoid (Parser a) Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

mempty :: Parser a #

mappend :: Parser a -> Parser a -> Parser a #

mconcat :: [Parser a] -> Parser a #

data Result a Source #

Constructors

Error String 
Success a 

Instances

Instances details
Eq a => Eq (Result a) Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

(==) :: Result a -> Result a -> Bool #

(/=) :: Result a -> Result a -> Bool #

Show a => Show (Result a) Source # 
Instance details

Defined in System.Directory.Watchman.BSER.Parser

Methods

showsPrec :: Int -> Result a -> ShowS #

show :: Result a -> String #

showList :: [Result a] -> ShowS #

parse :: (a -> Parser b) -> a -> Result b Source #

Run a Parser.