@hackage ron0.5
RON
Installation
Dependencies (13)
- aeson
- attoparsec
- base >=4.10 && <4.13
- binary
- bytestring
- containers Show all…
Dependents (3)
@hackage/ron-storage, @hackage/ron-schema, @hackage/ron-rdt
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