th-printf-0.8: Quasiquoters for printf
Safe HaskellSafe-Inferred
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

Instances details
Bounded OutputType Source # 
Instance details

Defined in Language.Haskell.Printf.Lib

Enum 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 #

Show 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

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.8-HM25X6bSTLkALOXDFPGg20" 'False) (C1 ('MetaCons "OutputString" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "OutputText" 'PrefixI 'False) (U1 :: Type -> Type))