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

Safe HaskellNone

Data.StableTree.Persist.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

NoTree Id 
NoVal Id 
ApiError Text 

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

Create a new RAM store