Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- type KeyValueData = Map Text Value
- newtype Value = Value ByteString
- text :: Text -> Value
- bytes :: ByteString -> Value
- number :: (Num a, Show a) => a -> Value
- class FromValue a where
- textual :: KeyValueData -> Map Text Text
- getDataLe :: Int -> Get KeyValueData
- getData :: Get Word32 -> Int -> Get KeyValueData
- putDataLe :: KeyValueData -> Put
- putData :: (Word32 -> Put) -> KeyValueData -> Put
Documentation
Writing
Instances
Generic Value Source # | |
Show Value Source # | |
Eq Value Source # | |
type Rep Value Source # | |
Defined in Codec.Ktx.KeyValue type Rep Value = D1 ('MetaData "Value" "Codec.Ktx.KeyValue" "ktx-codec-0.0.2.0-84DzqCckuCeLP6J4LSYncI" 'True) (C1 ('MetaCons "Value" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ByteString))) |
bytes :: ByteString -> Value Source #
Reading
Binary operations
putDataLe :: KeyValueData -> Put Source #