Class for types that can be embedded into Value
Methods
toValue :: a -> ValueEmbed a single thing into a TOML value.
toValueList :: [a] -> ValueHelper for converting a list of things into a value. This is typically left to be defined by its default implementation and exists to help define the encoding for TOML arrays.
Instances31ToValue, …
ToValue IntegerDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue NaturalDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Int16Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Int32Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Int64Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Int8Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Word16Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Word32Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Word64Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue Word8Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue BoolDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue CharDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueSingle characters are encoded as singleton strings. Lists of characters are encoded as a single string value.
ToValue DoubleDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue FloatDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue IntDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue WordDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue TextDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueEncodes as string literal
ToValue TextDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueEncodes as string literal
ToValue DayDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue LocalTimeDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue TimeOfDayDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue ZonedTimeDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue ValueDefined in toml-parser-2.0.0.0 · Toml.Schema.ToValueIdentity function
Integral a => ToValue (Ratio a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueTOML represents floating point numbers with Double. This operation lose precision and can overflow to infinity.
ToValue (Table' a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueToValue a => ToValue (Seq a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueConverts to list and encodes that to value
ToValue a => ToValue (NonEmpty a)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueConverts to list and encodes that to value
ToValue a => ToValue [a]Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValueThis instance defers to the list element's toValueList implementation.
(Generic a, GToArray (Rep a)) => ToValue (GenericTomlArray a)Defined in toml-parser-2.0.0.0 · Toml.Schema.GenericInstance derived using genericToArray
(Generic a, GToTable (Rep a)) => ToValue (GenericTomlTable a)Defined in toml-parser-2.0.0.0 · Toml.Schema.GenericInstance derived from ToTable instance using defaultTableToValue
(ToKey k, ToValue v) => ToValue (Map k v)Defined in toml-parser-2.0.0.0 · Toml.Schema.ToValue