Module

MVC.Variant.View

Package
purescript-mvc
Repository
thought2/purescript-mvc

#ViewArgs Source

type ViewArgs :: (Type -> Type) -> Type -> Typetype ViewArgs src msg = { caseKey :: CaseKey, caseKeys :: Array CaseKey, mkMsg :: CaseKey -> msg, viewCase :: src msg }

#ViewVariantProps Source

type ViewVariantProps :: (Type -> Type) -> Typetype ViewVariantProps html = { view :: forall msg. ViewArgs html msg -> html msg }

#CaseKeyToVariant Source

class CaseKeyToVariant :: Row Type -> Constraintclass CaseKeyToVariant (rcase :: Row Type)  where

Members

Instances

#CaseKeyToVariantRL Source

class CaseKeyToVariantRL :: RowList Type -> Row Type -> Constraintclass CaseKeyToVariantRL (rl :: RowList Type) (rcase :: Row Type) | rl -> rcase where

Members

Instances

#GetKeys Source

class GetKeys :: RowList Type -> Constraintclass GetKeys (rl :: RowList Type)  where

Members

Instances

#GetSym Source

class GetSym :: Row Type -> Constraintclass GetSym (r :: Row Type)  where

Members

Instances

#GetSymRL Source

class GetSymRL :: RowList Type -> Row Type -> Constraintclass GetSymRL (rl :: RowList Type) (r :: Row Type) | rl -> r where

Members

Instances

#ViewVariant Source

class ViewVariant :: (Type -> Type) -> Row Type -> Row Type -> Row Type -> Row Type -> Constraintclass ViewVariant (html :: Type -> Type) (views :: Row Type) (rcase :: Row Type) (rmsg :: Row Type) (rsta :: Row Type)  where

Members

Instances

#ViewVariantRL Source

class ViewVariantRL :: RowList Type -> (Type -> Type) -> Row Type -> Row Type -> Row Type -> Constraintclass ViewVariantRL (rl :: RowList Type) (html :: Type -> Type) (views :: Row Type) (rmsg :: Row Type) (rsta :: Row Type) | rl -> rmsg rsta where

Members

Instances