shakespeare-2.0.20: A toolkit for making compile-time interpolated templates

Safe HaskellNone
LanguageHaskell98

Text.Shakespeare.Base

Description

General parsers, functions and datatypes for all Shakespeare languages.

Synopsis

Documentation

data Deref Source #

Instances
Eq Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

(==) :: Deref -> Deref -> Bool Source #

(/=) :: Deref -> Deref -> Bool Source #

Data Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Deref -> c Deref Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Deref Source #

toConstr :: Deref -> Constr Source #

dataTypeOf :: Deref -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Deref) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Deref) Source #

gmapT :: (forall b. Data b => b -> b) -> Deref -> Deref Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Deref -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Deref -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Deref -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Deref -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Deref -> m Deref Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Deref -> m Deref Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Deref -> m Deref Source #

Ord Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Read Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Show Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Lift Deref Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

lift :: Deref -> Q Exp Source #

newtype Ident Source #

Constructors

Ident String 
Instances
Eq Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

(==) :: Ident -> Ident -> Bool Source #

(/=) :: Ident -> Ident -> Bool Source #

Data Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Ident -> c Ident Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Ident Source #

toConstr :: Ident -> Constr Source #

dataTypeOf :: Ident -> DataType Source #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Ident) Source #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Ident) Source #

gmapT :: (forall b. Data b => b -> b) -> Ident -> Ident Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Ident -> r Source #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Ident -> r Source #

gmapQ :: (forall d. Data d => d -> u) -> Ident -> [u] Source #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Ident -> u Source #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Ident -> m Ident Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Ident -> m Ident Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Ident -> m Ident Source #

Ord Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Read Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Show Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Lift Ident Source # 
Instance details

Defined in Text.Shakespeare.Base

Methods

lift :: Ident -> Q Exp Source #

type Scope = [(Ident, Exp)] Source #

parseDeref :: UserParser a Deref Source #

parseHash :: UserParser a (Either String Deref) Source #

parseVar :: Char -> UserParser a (Either String Deref) Source #

parseAt :: UserParser a (Either String (Deref, Bool)) Source #

parseUrl :: Char -> Char -> UserParser a (Either String (Deref, Bool)) Source #

parseCaret :: UserParser a (Either String Deref) Source #

parseUnder :: UserParser a (Either String Deref) Source #

parseInt :: Char -> UserParser a (Either String Deref) Source #

readUtf8FileString :: FilePath -> IO String Source #

Read file's content as String, converting newlines

Since: 2.0.19

readFileQ :: FilePath -> Q String Source #

Embed file's content, converting newlines

Since: 2.0.19

readFileRecompileQ :: FilePath -> Q String Source #

Embed file's content, converting newlines and track file via ghc dependencies, recompiling on changes

Since: 2.0.19