preql-0.6: safe PostgreSQL queries using Quasiquoters
Safe HaskellNone
LanguageHaskell2010

Preql.QuasiQuoter.Raw.Lex

Description

 
Synopsis

Documentation

data AlexAcc user Source #

data LocToken Source #

Constructors

LocToken 

Fields

Instances

Instances details
Show LocToken Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

data Token Source #

Instances

Instances details
Eq Token Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

(==) :: Token -> Token -> Bool #

(/=) :: Token -> Token -> Bool #

Ord Token Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

compare :: Token -> Token -> Ordering #

(<) :: Token -> Token -> Bool #

(<=) :: Token -> Token -> Bool #

(>) :: Token -> Token -> Bool #

(>=) :: Token -> Token -> Bool #

max :: Token -> Token -> Token #

min :: Token -> Token -> Token #

Show Token Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

showsPrec :: Int -> Token -> ShowS #

show :: Token -> String #

showList :: [Token] -> ShowS #

data AlexUserState Source #

Constructors

AlexUserState 

Fields

data AlexAddr Source #

Constructors

AlexA# Addr# 

utf8Encode :: Char -> [Word8] Source #

Encode a Haskell String to a list of Word8 values, in UTF8 format.

data AlexPosn Source #

Constructors

AlexPn !Int !Int !Int 

Instances

Instances details
Eq AlexPosn Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Show AlexPosn Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

newtype Alex a Source #

Constructors

Alex 

Instances

Instances details
Monad Alex Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

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

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

return :: a -> Alex a #

Functor Alex Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

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

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

Applicative Alex Source # 
Instance details

Defined in Preql.QuasiQuoter.Raw.Lex

Methods

pure :: a -> Alex a #

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

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

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

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

type AlexAction result = AlexInput -> Int -> Alex result Source #

skip :: p1 -> p2 -> Alex LocToken Source #

begin :: Int -> p1 -> p2 -> Alex LocToken Source #

andBegin :: AlexAction result -> Int -> AlexAction result Source #

token :: (AlexInput -> Int -> token) -> AlexAction token Source #