@hackage ron-storage0.6
RON Storage
Installation
Dependencies (13)
- base >=4.10 && <4.13
- bytestring
- containers
- directory
- filepath
- integer-gmp Show all…
Dependents (0)
Replicated Object Notation (RON), data types (RDT), and RON-Schema
Typical usage:
import RON.Data
import RON.Schema.TH
import RON.Storage.IO as Storage
[mkReplicated|
(struct_lww Note
active Boole
text RgaString)
|]
instance Collection Note where
collectionName = "note"
main :: IO ()
main = do
let dataDir = "./data/"
h <- Storage.newHandle dataDir
runStorage h $ do
obj <- newObject
Note{active = True, text = "Write a task manager"}
createDocument obj