@hackage ron0.4
RON, RON-RDT, and RON-Schema
Installation
Dependencies (22)
- Diff
- aeson
- attoparsec
- base >=4.10 && <4.13
- binary
- bytestring 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