| Copyright | (c) 2021 Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | None |
| Language | Haskell2010 |
Mdbx.Store
Contents
Synopsis
- newtype MdbxItemStore a = MdbxItemStore {
- unwrapStore :: a
- fromMdbxStore :: Store v => MdbxVal -> IO v
- withMdbxStore :: Store v => v -> (MdbxVal -> IO a) -> IO a
Documentation
newtype MdbxItemStore a Source #
Helper type to derive MdbxItem instances for types implementing Store using
the newtype deriving trick.
Constructors
| MdbxItemStore | |
Fields
| |
Instances
| Store a => MdbxItem (MdbxItemStore a) Source # | |
Defined in Mdbx.Store Methods fromMdbxVal :: MdbxVal -> IO (MdbxItemStore a) Source # toMdbxVal :: MdbxItemStore a -> (MdbxVal -> IO b) -> IO b Source # | |