Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
Synopsis
- data PyFCategory
- type family PyFClassify t :: PyFCategory
- class PyFToString t where
- pyfToString :: t -> String
Documentation
data PyFCategory Source #
The three categories of formatting in PyF
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 # | |
Defined in PyF.Class | |
type PyFClassify Float Source # | |
Defined in PyF.Class | |
type PyFClassify Int Source # | |
Defined in PyF.Class | |
type PyFClassify Int8 Source # | |
Defined in PyF.Class | |
type PyFClassify Int16 Source # | |
Defined in PyF.Class | |
type PyFClassify Int32 Source # | |
Defined in PyF.Class | |
type PyFClassify Int64 Source # | |
Defined in PyF.Class | |
type PyFClassify Integer Source # | |
Defined in PyF.Class | |
type PyFClassify Natural Source # | |
Defined in PyF.Class | |
type PyFClassify Word Source # | |
Defined in PyF.Class | |
type PyFClassify Word8 Source # | |
Defined in PyF.Class | |
type PyFClassify Word16 Source # | |
Defined in PyF.Class | |
type PyFClassify Word32 Source # | |
Defined in PyF.Class | |
type PyFClassify Word64 Source # | |
Defined in PyF.Class | |
type PyFClassify String Source # | |
Defined in PyF.Class | |
type PyFClassify Text Source # | |
Defined in PyF.Class | |
type PyFClassify Text Source # | |
Defined in PyF.Class |
class PyFToString t where Source #
Convert a type to string
The default implementation uses Show
Nothing
pyfToString :: t -> String Source #
pyfToString :: Show t => t -> String Source #
Instances
PyFToString String Source # | |
PyFToString Text Source # | |
PyFToString Text Source # | |