yesod-crud-0.1.2: Generic administrative CRUD operations as a Yesod subsite

Copyright©2015 Christopher League
Maintainerleague@contrapunctus.net
Safe HaskellNone
LanguageHaskell2010

Yesod.Contrib.League.Crud.TVarMap

Description

This is a proof of concept for implementing CRUD operations that are not based on Database.Persist. It uses a TVar and a Map from UUID keys to the CRUD entity.

Synopsis

Documentation

data CrudTVarKey Source

The key type. A wrapper for UUID that implements all the necessary classes, including PathPiece.

type CrudTVarMap sub = Map CrudTVarKey (Obj sub) Source

Synonym for the map type.

crudTVarMapDefaults :: (ObjId sub ~ CrudTVarKey) => CrudM sub (TVar (CrudTVarMap sub)) -> CrudDB sub Source

Retrieve a record of database operations for using a CrudTVarMap.