PyF-0.8.0.0: Quasiquotations for a python like interpolated string formater

Safe HaskellSafe
LanguageHaskell2010

PyF.Class

Synopsis

Documentation

data PyFCategory Source #

The three categories of formatting in PyF

Constructors

PyFIntegral

Format as an integral, no fractional part, precise value

PyFFractional

Format as a fractional, approximate value with a fractional part

PyFString

Format as a string

type family PyFClassify t :: PyFCategory Source #

Classify a type to a PyFCategory This classification will be used to decide which formatting to use when no type specifier in provided.

Instances
type PyFClassify Double Source # 
Instance details

Defined in PyF.Class

type PyFClassify Float Source # 
Instance details

Defined in PyF.Class

type PyFClassify Int Source # 
Instance details

Defined in PyF.Class

type PyFClassify Int8 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Int16 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Int32 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Int64 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Integer Source # 
Instance details

Defined in PyF.Class

type PyFClassify Natural Source # 
Instance details

Defined in PyF.Class

type PyFClassify Word Source # 
Instance details

Defined in PyF.Class

type PyFClassify Word8 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Word16 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Word32 Source # 
Instance details

Defined in PyF.Class

type PyFClassify Word64 Source # 
Instance details

Defined in PyF.Class

type PyFClassify String Source # 
Instance details

Defined in PyF.Class

type PyFClassify Text Source # 
Instance details

Defined in PyF.Class

type PyFClassify Text Source # 
Instance details

Defined in PyF.Class

class PyFToString t where Source #

Convert a type to string The default implementation uses Show

Minimal complete definition

Nothing

Methods

pyfToString :: t -> String Source #

pyfToString :: Show t => t -> String Source #

Instances
PyFToString String Source # 
Instance details

Defined in PyF.Class

PyFToString Text Source # 
Instance details

Defined in PyF.Class

PyFToString Text Source # 
Instance details

Defined in PyF.Class