Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Propellor.Types.ConfigurableValue
- class ConfigurableValue t where
Documentation
class ConfigurableValue t where Source #
A value that can be used in a configuration file, or otherwise used to configure a program.
Unlike Show, there should only be instances of this type class for values that have a standard serialization that is understood outside of Haskell code.
When converting a type alias such as "type Foo = String" or "type Foo = Int" to a newtype, it's unsafe to derive a Show instance, because there may be code that shows the type to configure a value. Instead, define a ConfigurableValue instance.
Minimal complete definition
Instances
ConfigurableValue Double Source # | |
ConfigurableValue Float Source # | |
ConfigurableValue Int Source # | |
ConfigurableValue Integer Source # | |
ConfigurableValue Word8 Source # | |
ConfigurableValue Word16 Source # | |
ConfigurableValue Word32 Source # | |
ConfigurableValue String Source # | val String does not do any quoting, unlike show String |
ConfigurableValue Port Source # | |
ConfigurableValue Group Source # | |
ConfigurableValue User Source # | |
ConfigurableValue FBSDVersion Source # | |
ConfigurableValue IPAddr Source # | |
ConfigurableValue ZDataset Source # | |
ConfigurableValue AptSource Source # | |
ConfigurableValue PPA Source # | |
ConfigurableValue Frequency Source # | |
ConfigurableValue ICMPTypeMatch Source # | |
ConfigurableValue Chain Source # | |
ConfigurableValue Target Source # | |
ConfigurableValue Table Source # | |
ConfigurableValue IPWithMask Source # | |
ConfigurableValue ReportLevel Source # | |
ConfigurableValue ResticRepo Source # | |
ConfigurableValue PoudriereArch Source # | |