th-printf-0.7: Quasiquoters for printf

Safe HaskellNone
LanguageHaskell2010

Language.Haskell.Printf.Lib

Synopsis

Documentation

toSplices :: String -> OutputType -> Q ([Pat], Exp) Source #

Takes a format string as input and produces a tuple (args, outputExpr).

This function processes character escapes as they would appear in Haskell source code. It will emit warnings (or throw an error, as appropriate) when given an invalid format string.

Use if you wish to leverage th-printf in conjunction with, for example, an existing logging library.

data OutputType Source #

Constructors

OutputString 
OutputText 
Instances
Bounded OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Enum OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Eq OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Ord OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Show OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Generic OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Associated Types

type Rep OutputType :: Type -> Type #

type Rep OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

type Rep OutputType = D1 (MetaData "OutputType" "Language.Haskell.Printf.Lib" "th-printf-0.7-KZSltg6UkqS585b2hsFOKt" False) (C1 (MetaCons "OutputString" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "OutputText" PrefixI False) (U1 :: Type -> Type))