Moduletomland-1.3.3.3Haskell2010
Toml.Codec.BiMap.Conversion
SPDX-License-Identifier : MPL-2.0 Maintainer : Kowainik xrom.xkov@gmail.com Stability : Stable Portability : Portable
Implementations of BiMap for specific Haskell types and TOML values. Usually, you use codecs from the Toml.Codec.Combinator module. You may need to use these BiMaps instead of codecs in the following situations:
- 45 values
- Packagetomland-1.3.3.3
- Exports45
- LanguageHaskell2010
- LicenceMPL-2.0
- SourceConversion.hs
Primitive
0 declarationsBoolean
Integral
Floating
Text
UTF-8 encoded ByteString BiMap for AnyValue. Usually used as the byteString combinator.
UTF-8 encoded lazy ByteString BiMap for AnyValue. Usually used as the lazyByteString combinator.
Time
4 declarationsArrays
7 declarationsTakes a BiMap of a value and returns a BiMap for a NonEmpty
list of values and AnyValue as an array. Usually used as the
arrayNonEmptyOf combinator.
Takes a BiMap of a value and returns a BiMap for a Set of
values and AnyValue as an array. Usually used as the
arraySetOf combinator.
Takes a BiMap of a value and returns a BiMap for a HashSet of
values and AnyValue as an array. Usually used as the
arrayHashSetOf combinator.
IntSet bimap for AnyValue. Usually used as the arrayIntSet combinator.
ByteString BiMap for AnyValue encoded as a list of bytes (non-negative integers between 0 and 255). Usually used as the byteStringArray combinator.
Lazy ByteString BiMap for AnyValue encoded as a list of bytes (non-negative integers between 0 and 255). Usually used as lazyByteStringArray combinator.
Coerce
1 declarationCustom
5 declarationsBiMap for nullary sum data types (enumerations) with Show, Enum and Bounded instances. Usually used as the enumBounded combinator.
_TextBy By the given BiMap validates it with the given predicate that returns Either the value, if the validation is successful, or the Text of the error that should be returned in case of validation failure.
Usually used as the validate or validateIf combinator.
BiMap for hardcoded values. It returns the same value in case of success and ArbitraryError in other case.
Keys
3 declarationsBidirectional converter between Key and Int. Usually used as an argument for tableIntMap.
General purpose
3 declarationsInternal helpers
9 declarationsHelper BiMap for _EnumBounded and Text.
Helper BiMap for Text and strict ByteString
Helper BiMap for Text and lazy ByteString.