language-c-quote-0.12.2: C/CUDA/OpenCL/Objective-C quasiquoting library.

Copyright(c) 2006-2011 Harvard University
(c) 2011-2013 Geoffrey Mainland
LicenseBSD-style
Maintainermainland@drexel.edu
Safe HaskellNone
LanguageHaskell98

Language.C.Parser.Monad

Description

 

Synopsis

Documentation

data P a Source #

Instances

Monad P Source # 

Methods

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

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

return :: a -> P a #

fail :: String -> P a #

Functor P Source # 

Methods

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

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

Applicative P Source # 

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 #

MonadException P Source # 

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 # 

Methods

get :: P PState #

put :: PState -> P () #

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

data PState Source #

Instances

MonadState PState P Source # 

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.