yasi-0.2.0.2: Yet another string interpolator
Safe HaskellSafe-Inferred
LanguageGHC2021

Yasi.Internal

Description

Internal module, no stability guarantees

Documentation

data Segment Source #

Constructors

Lit String 
Exp String 
Abs 

Instances

Instances details
Generic Segment Source # 
Instance details

Defined in Yasi.Internal

Associated Types

type Rep Segment :: Type -> Type #

Methods

from :: Segment -> Rep Segment x #

to :: Rep Segment x -> Segment #

Show Segment Source # 
Instance details

Defined in Yasi.Internal

Eq Segment Source # 
Instance details

Defined in Yasi.Internal

Methods

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

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

type Rep Segment Source # 
Instance details

Defined in Yasi.Internal

type Rep Segment = D1 ('MetaData "Segment" "Yasi.Internal" "yasi-0.2.0.2-4g5ghyykxem501ehksUxd4" 'False) (C1 ('MetaCons "Lit" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: (C1 ('MetaCons "Exp" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String)) :+: C1 ('MetaCons "Abs" 'PrefixI 'False) (U1 :: Type -> Type)))

ipExpr :: (Exp -> Exp) -> [Segment] -> Q Exp Source #

interpolator Source #

Arguments

:: Char 
-> (Exp -> Exp)

postprocess the Exp

-> QuasiQuoter 

class Stringish a where Source #

Methods

stringish :: Builder -> a Source #

Instances

Instances details
Stringish Text Source # 
Instance details

Defined in Yasi.Internal

Stringish Text Source # 
Instance details

Defined in Yasi.Internal

Stringish String Source # 
Instance details

Defined in Yasi.Internal