stable-tree-0.0.1: Trees whose branches are resistant to change

CopyrightJeremy Groven
LicenseBSD3
Safe HaskellNone
LanguageHaskell2010

Data.StableTree.IO.Ram

Description

A sample implementation of StableTree storage that just writes stuff to some Maps that are wrapped in IORefs.

Synopsis

Documentation

data RamError Source

Error type for RAM storage. Not a lot can go wrong in RAM...

Constructors

NoKey 
ApiError Text 

storage :: IO (Store RamError k v, IORef (Map Id (Int, Map k Id)), IORef (Map Id v)) Source

Create a new RAM store