serpentine-0.2: Simple project template from stack

Safe HaskellNone
LanguageHaskell2010

Serpentine.Crud

Documentation

data CrudRoute Source

Constructors

AddR 
EditR 
DeleteR 
ViewR 

Instances

Bounded CrudRoute Source 
Enum CrudRoute Source 
Eq CrudRoute Source 
Ord CrudRoute Source 
Show CrudRoute Source 
SingI CrudRoute AddR Source 
SingI CrudRoute EditR Source 
SingI CrudRoute DeleteR Source 
SingI CrudRoute ViewR Source 
PEnum CrudRoute (KProxy CrudRoute) Source 
SEnum CrudRoute (KProxy CrudRoute) Source 
PBounded CrudRoute (KProxy CrudRoute) Source 
SBounded CrudRoute (KProxy CrudRoute) Source 
POrd CrudRoute (KProxy CrudRoute) Source 
SOrd CrudRoute (KProxy CrudRoute) Source 
SEq CrudRoute (KProxy CrudRoute) Source 
PEq CrudRoute (KProxy CrudRoute) Source 
SDecide CrudRoute (KProxy CrudRoute) Source 
SingKind CrudRoute (KProxy CrudRoute) Source 
SuppressUnusedWarnings (* -> TyFun CrudRoute [Piece *] -> *) PlanCrudRouteSym1 Source 
SuppressUnusedWarnings (CrudRoute -> TyFun CrudRoute Ordering -> *) Compare_1627491315Sym1 Source 
SuppressUnusedWarnings (TyFun * (TyFun CrudRoute [Piece *] -> *) -> *) PlanCrudRouteSym0 Source 
SuppressUnusedWarnings (TyFun Nat CrudRoute -> *) ToEnum_1627491374Sym0 Source 
SuppressUnusedWarnings (TyFun CrudRoute (TyFun CrudRoute Ordering -> *) -> *) Compare_1627491315Sym0 Source 
SuppressUnusedWarnings (TyFun CrudRoute Nat -> *) FromEnum_1627491416Sym0 Source 
type MaxBound CrudRoute = MaxBound_1627491594Sym0 Source 
type MinBound CrudRoute = MinBound_1627491520Sym0 Source 
data Sing CrudRoute where Source 
type FromEnum CrudRoute a0 = Apply Nat CrudRoute FromEnum_1627491416Sym0 a0 Source 
type ToEnum CrudRoute a0 = Apply CrudRoute Nat ToEnum_1627491374Sym0 a0 Source 
type Pred CrudRoute arg0 = Apply CrudRoute CrudRoute (Pred_1627811545Sym0 CrudRoute) arg0 
type Succ CrudRoute arg0 = Apply CrudRoute CrudRoute (Succ_1627811532Sym0 CrudRoute) arg0 
type EnumFromTo CrudRoute arg0 arg1 = Apply [CrudRoute] CrudRoute (Apply (TyFun CrudRoute [CrudRoute] -> *) CrudRoute (EnumFromTo_1627811563Sym0 CrudRoute) arg0) arg1 
type Min CrudRoute arg0 arg1 = Apply CrudRoute CrudRoute (Apply (TyFun CrudRoute CrudRoute -> *) CrudRoute (Min_1627654724Sym0 CrudRoute) arg0) arg1 
type Max CrudRoute arg0 arg1 = Apply CrudRoute CrudRoute (Apply (TyFun CrudRoute CrudRoute -> *) CrudRoute (Max_1627654691Sym0 CrudRoute) arg0) arg1 
type (:>=) CrudRoute arg0 arg1 = Apply Bool CrudRoute (Apply (TyFun CrudRoute Bool -> *) CrudRoute (TFHelper_1627654658Sym0 CrudRoute) arg0) arg1 
type (:>) CrudRoute arg0 arg1 = Apply Bool CrudRoute (Apply (TyFun CrudRoute Bool -> *) CrudRoute (TFHelper_1627654625Sym0 CrudRoute) arg0) arg1 
type (:<=) CrudRoute arg0 arg1 = Apply Bool CrudRoute (Apply (TyFun CrudRoute Bool -> *) CrudRoute (TFHelper_1627654592Sym0 CrudRoute) arg0) arg1 
type (:<) CrudRoute arg0 arg1 = Apply Bool CrudRoute (Apply (TyFun CrudRoute Bool -> *) CrudRoute (TFHelper_1627654559Sym0 CrudRoute) arg0) arg1 
type Compare CrudRoute a0 a1 = Apply Ordering CrudRoute (Apply (TyFun CrudRoute Ordering -> *) CrudRoute Compare_1627491315Sym0 a0) a1 Source 
type (:/=) CrudRoute x y = Not ((:==) CrudRoute x y) 
type (:==) CrudRoute a0 b0 = Equals_1627491013 a0 b0 Source 
type EnumFromThenTo CrudRoute arg0 arg1 arg2 = Apply [CrudRoute] CrudRoute (Apply (TyFun CrudRoute [CrudRoute] -> *) CrudRoute (Apply (TyFun CrudRoute (TyFun CrudRoute [CrudRoute] -> *) -> *) CrudRoute (EnumFromThenTo_1627811593Sym0 CrudRoute) arg0) arg1) arg2 
type Apply Nat CrudRoute FromEnum_1627491416Sym0 l0 = FromEnum_1627491416Sym1 l0 Source 
type Apply CrudRoute Nat ToEnum_1627491374Sym0 l0 = ToEnum_1627491374Sym1 l0 Source 
type Apply Ordering CrudRoute (Compare_1627491315Sym1 l1) l0 = Compare_1627491315Sym2 l1 l0 Source 
type DemoteRep CrudRoute (KProxy CrudRoute) = CrudRoute Source 
type Apply [Piece *] CrudRoute (PlanCrudRouteSym1 l1) l0 = PlanCrudRouteSym2 l1 l0 Source 
type Apply (TyFun CrudRoute [Piece *] -> *) * PlanCrudRouteSym0 l0 = PlanCrudRouteSym1 l0 Source 
type Apply (TyFun CrudRoute Ordering -> *) CrudRoute Compare_1627491315Sym0 l0 = Compare_1627491315Sym1 l0 Source 

type SCrudRoute = (Sing :: CrudRoute -> *) Source

type family Case_1627491367 n t Source

Equations

Case_1627491367 n True = ViewRSym0 
Case_1627491367 n False = Apply ErrorSym0 "toEnum: bad argument" 

type family PlanCrudRoute key r :: [Piece *] Source

Equations

PlanCrudRoute key AddR = `[Static "add"]` 
PlanCrudRoute key EditR = `[Static "edit", Capture key]` 
PlanCrudRoute key DeleteR = `[Static "delete", Capture key]` 
PlanCrudRoute key ViewR = `[Static "view", Capture key]`