Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
GHC.TypeLits.Printf.Parse
Synopsis
- type ParseFmtStr str = EvalParser FmtStrParser str
- type ParseFmtStr_ str = EvalParser_ FmtStrParser str
- data FormatAdjustment
- data FormatSign
- data WidthMod
- data Flags = Flags {}
- type EmptyFlags = 'Flags 'Nothing 'Nothing 'False
- data FieldFormat = FF {}
- type SChar = Symbol
- type family Demote k = a | a -> k
- class Reflect (x :: a) where
Documentation
type ParseFmtStr str = EvalParser FmtStrParser str Source #
type ParseFmtStr_ str = EvalParser_ FmtStrParser str Source #
data FormatAdjustment #
Whether to left-adjust or zero-pad a field. These are
mutually exclusive, with LeftAdjust
taking precedence.
Since: base-4.7.0.0
Constructors
LeftAdjust | |
ZeroPad |
Instances
Reflect 'ZeroPad Source # | |
Reflect 'LeftAdjust Source # | |
Defined in GHC.TypeLits.Printf.Parse Methods reflect :: p 'LeftAdjust -> Demote a Source # | |
type Demote FormatAdjustment Source # | |
Defined in GHC.TypeLits.Printf.Parse |
data FormatSign #
How to handle the sign of a numeric field. These are
mutually exclusive, with SignPlus
taking precedence.
Since: base-4.7.0.0
Constructors
Flags | |
Fields
|
data FieldFormat Source #
Constructors
FF | |
Instances
type family Demote k = a | a -> k Source #
Instances
type Demote Bool Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote Nat Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote Symbol Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote FormatAdjustment Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote FormatSign Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote FieldFormat Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote WidthMod Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote Flags Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
type Demote (Maybe a) Source # | |
Defined in GHC.TypeLits.Printf.Parse |
class Reflect (x :: a) where Source #
Instances
Reflect 'False Source # | |
Reflect 'True Source # | |
KnownNat n => Reflect (n :: Nat) Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
KnownSymbol n => Reflect (n :: Symbol) Source # | |
Defined in GHC.TypeLits.Printf.Parse | |
Reflect 'ZeroPad Source # | |
Reflect 'LeftAdjust Source # | |
Defined in GHC.TypeLits.Printf.Parse Methods reflect :: p 'LeftAdjust -> Demote a Source # | |
Reflect 'SignSpace Source # | |
Reflect 'SignPlus Source # | |
Reflect 'WMhh Source # | |
Reflect 'WMh Source # | |
Reflect 'WMl Source # | |
Reflect 'WMll Source # | |
Reflect 'WML Source # | |
(Reflect d, Reflect i, Reflect l) => Reflect ('Flags d i l :: Flags) Source # | |
(Reflect flags, Reflect width, Reflect prec, Reflect mods, Reflect chr) => Reflect ('FF flags width prec mods chr :: FieldFormat) Source # | |
Reflect ('Nothing :: Maybe a) Source # | |
Reflect x => Reflect ('Just x :: Maybe a) Source # | |