yesod-crud-persist-0.1.2: Flexible CRUD subsite usable with Yesod and Persistent.

Safe HaskellNone
LanguageHaskell2010

Yesod.Crud

Documentation

data Crud master a Source

Constructors

Crud 

Fields

_chAdd :: HandlerT (Crud master a) (HandlerT master IO) Html
 
_chIndex :: HandlerT (Crud master a) (HandlerT master IO) Html
 
_chEdit :: Key a -> HandlerT (Crud master a) (HandlerT master IO) Html
 
_chDelete :: Key a -> HandlerT (Crud master a) (HandlerT master IO) Html
 

Instances

Eq (Key a) => Eq (Route (Crud master a)) 
Read (Key a) => Read (Route (Crud master a)) 
Show (Key a) => Show (Route (Crud master a)) 
(PathPiece (Key a), Eq (Key a)) => RenderRoute (Crud master a) 
(Eq (Key a), PathPiece (Key a)) => ParseRoute (Crud master a) 
(Eq (Key a), PathPiece (Key a)) => YesodSubDispatch (Crud master a) (HandlerT master IO) 
data Route (Crud master a)  

data ChildCrud master p c Source

Constructors

ChildCrud 

Fields

_ccAdd :: p -> HandlerT (ChildCrud master p c) (HandlerT master IO) Html
 
_ccIndex :: p -> HandlerT (ChildCrud master p c) (HandlerT master IO) Html
 
_ccEdit :: Key c -> HandlerT (ChildCrud master p c) (HandlerT master IO) Html
 
_ccDelete :: Key c -> HandlerT (ChildCrud master p c) (HandlerT master IO) Html
 

Instances

(Eq (Key c), Eq p) => Eq (Route (ChildCrud master p c)) 
(Read (Key c), Read p) => Read (Route (ChildCrud master p c)) 
(Show (Key c), Show p) => Show (Route (ChildCrud master p c)) 
(PathPiece (Key c), Eq (Key c), PathPiece p, Eq p) => RenderRoute (ChildCrud master p c) 
(PathPiece (Key c), Eq (Key c), PathPiece p, Eq p) => ParseRoute (ChildCrud master p c) 
(Eq (Key c), PathPiece (Key c), Eq p, PathPiece p) => YesodSubDispatch (ChildCrud master p c) (HandlerT master IO) 
data Route (ChildCrud master p c)  

type HierarchyCrud master a = ChildCrud master (Maybe (Key a)) a Source