@hackage ron-schema0.6
RON-Schema
Installation
Dependencies (12)
- base >=4.10 && <4.13
- bytestring
- containers
- hedn >=0.2 && <0.3
- integer-gmp
- megaparsec 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.FS 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