bookkeeper-permissions-0.1.0.0: Permissions for bookkeeper records

Safe HaskellNone
LanguageHaskell2010

Bookkeeper.Permissions.Examples

Documentation

data Admin Source #

Constructors

Admin 

data Auth Source #

Constructors

Auth 

type Person = Book '["name" :=> Permission '["modify" :=> (Admin :&: Auth), "insert" :=> Auth] String, "age" :=> Permission '["modify" :=> Auth, "insert" :=> Auth] Int, "bff" :=> Permission '["modify" :=> Admin, "insert" :=> Auth] (Book '["forever" :=> Permission '["modify" :=> Admin, "insert" :=> Auth] Bool]), "key" :=> Permission '["read" :=> Admin, "modify" :=> Admin, "insert" :=> Auth] String] Source #

insertKey :: Book' (old :\ "key") -> Book' old Source #