Copyright | (c) 2021 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | [email protected] |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Mdbx.Binary
Contents
Synopsis
- newtype MdbxItemBinary a = MdbxItemBinary {
- unwrapBinary :: a
Documentation
newtype MdbxItemBinary a Source #
Helper type to derive MdbxItem
instances for types implementing Binary
using
the newtype deriving trick.
Constructors
MdbxItemBinary | |
Fields
|
Instances
Binary a => MdbxItem (MdbxItemBinary a) Source # | |
Defined in Mdbx.Binary Methods fromMdbxVal :: MdbxVal -> IO (MdbxItemBinary a) Source # toMdbxVal :: MdbxItemBinary a -> (MdbxVal -> IO b) -> IO b Source # |
Orphan instances
Binary NullText Source # | |
Binary NullByteString Source # | |
Methods put :: NullByteString -> Put # get :: Get NullByteString # putList :: [NullByteString] -> Put # | |
MdbxItem NullText Source # | |
MdbxItem NullByteString Source # | |
Methods fromMdbxVal :: MdbxVal -> IO NullByteString Source # toMdbxVal :: NullByteString -> (MdbxVal -> IO b) -> IO b Source # |