@hackage ron-rdt0.5
Replicated Data Types (RON-RDT)
Installation
Dependencies (11)
- Diff
- base >=4.10 && <4.13
- containers
- hashable
- integer-gmp
- mtl Show all…
Dependents (2)
@hackage/ron-storage, @hackage/ron-schema
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