language-c-quote-0.13.0.1: C/CUDA/OpenCL/Objective-C quasiquoting library.
Copyright(c) 2006-2011 Harvard University
(c) 2011-2013 Geoffrey Mainland
LicenseBSD-style
Maintainermainland@drexel.edu
Safe HaskellSafe-Inferred
LanguageHaskell2010

Language.C.Parser.Monad

Description

 
Synopsis

Documentation

data P a Source #

Instances

Instances details
MonadFail P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

fail :: String -> P a #

Applicative P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

pure :: a -> P a #

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

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

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

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

Functor P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

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

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

Monad P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

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

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

return :: a -> P a #

MonadException P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

throw :: Exception e => e -> P a #

catch :: Exception e => P a -> (e -> P a) -> P a #

finally :: P a -> P b -> P a #

MonadState PState P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

get :: P PState #

put :: PState -> P () #

state :: (PState -> (a, PState)) -> P a #

data PState Source #

Instances

Instances details
MonadState PState P Source # 
Instance details

Defined in Language.C.Parser.Monad

Methods

get :: P PState #

put :: PState -> P () #

state :: (PState -> (a, PState)) -> P a #

failAt :: Loc -> String -> P a Source #

data AlexInput Source #

Constructors

AlexInput 

type AlexPredicate = PState -> AlexInput -> Int -> AlexInput -> Bool Source #

The components of an AlexPredicate are the predicate state, input stream before the token, length of the token, input stream after the token.