Module

MVC.Variant

Package
purescript-mvc
Repository
thought2/purescript-mvc

Re-exports from MVC.Variant.Types

#VariantState Source

#VariantMsg Source

data VariantMsg :: Row Type -> Row Type -> Typedata VariantMsg rcase rmsg

Constructors

Instances

#CaseKey Source

newtype CaseKey

Constructors

Instances

Re-exports from MVC.Variant.Update

#MatchCase Source

class MatchCase :: Row Type -> Row Type -> Row Type -> Constraintclass MatchCase (rcase :: Row Type) (initstates :: Row Type) (rsta :: Row Type)  where

Members

Instances

#MatchCaseRL Source

class MatchCaseRL :: RowList Type -> Row Type -> Row Type -> Row Type -> Constraintclass MatchCaseRL (rl :: RowList Type) (rcase :: Row Type) (initstates :: Row Type) (rsta :: Row Type) | rl -> rcase where

Members

Instances

#UpdateVariant Source

class UpdateVariant :: Row Type -> Row Type -> Row Type -> Row Type -> Row Type -> Constraintclass UpdateVariant (initstates :: Row Type) (updates :: Row Type) (rcase :: Row Type) (rmsg :: Row Type) (rsta :: Row Type)  where

Members

Instances

#UpdateVariantRL Source

class UpdateVariantRL :: RowList Type -> Row Type -> Row Type -> Row Type -> Constraintclass UpdateVariantRL (rl :: RowList Type) (updates :: Row Type) (rmsg :: Row Type) (rsta :: Row Type) | rl -> rsta where

Members

Instances

Re-exports from MVC.Variant.View

#ViewVariantProps Source

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

#ViewArgs Source

type ViewArgs :: (Type -> Type) -> Type -> Typetype ViewArgs src msg = { caseKey :: CaseKey, caseKeys :: Array CaseKey, mkMsg :: CaseKey -> msg, viewCase :: src 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