Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class Validate (f :: Status -> Type) where Source #
validate :: f Edit -> f Errors Source #
validate :: Generic (f Edit) => Generic (f Rules) => Generic (f Errors) => ValidateG (Rep (f Rules)) (Rep (f Edit)) (Rep (f Errors)) => f Edit -> f Errors Source #
getValid :: f Errors -> Maybe (f Valid) Source #
getValid :: Generic (f Errors) => Generic (f Valid) => ValidG (Rep (f Errors)) (Rep (f Valid)) => f Errors -> Maybe (f Valid) Source #
class ValidG err valid where Source #
Instances
ValidG (U1 :: Type -> Type) (U1 :: Type -> Type) Source # | |
ValidG (K1 i (Validated t a) :: Type -> Type) (K1 i' a :: Type -> Type) Source # | |
(ValidG a c, ValidG b d) => ValidG (a :+: b) (c :+: d) Source # | |
(ValidG a c, ValidG b d) => ValidG (a :*: b) (c :*: d) Source # | |
ValidG a b => ValidG (M1 i c a) (M1 i' c' b) Source # | |
class ValidateG rules edit errs where Source #
Instances
ValidateG (U1 :: Type -> Type) (U1 :: Type -> Type) (U1 :: Type -> Type) Source # | |
(Control c, Monoid v, Val c a ~ v, Ord a) => ValidateG (K1 i (v -> b) :: Type -> Type) (K1 i' (c a) :: Type -> Type) (K1 i'' b :: Type -> Type) Source # | |
(ValidateG a b c, ValidateG d e f, Alternative (c :+: f)) => ValidateG (a :+: d) (b :+: e) (c :+: f) Source # | |
(ValidateG a b c, ValidateG d e f) => ValidateG (a :*: d) (b :*: e) (c :*: f) Source # | |
ValidateG a b c => ValidateG (M1 i x a) (M1 i' x' b) (M1 i'' x'' c) Source # | |
type family Field (s :: Status) (e :: Type) (f :: Type -> Type) (x :: Type) :: Type where ... Source #
Instances
newtype Placeholder Source #
Instances
class Control g where Source #
hygiene :: Applicative f => (Hygiene -> f Hygiene) -> g a -> f (g a) Source #
value :: (Applicative f, Ord a) => (Val g a -> f (Val g a)) -> g a -> f (g a) Source #
Instances
Control Input Source # | |
Control (Dropdown One) Source # | |
Defined in Shpadoinkle.Widgets.Form.Dropdown | |
Control (Dropdown AtleastOne) Source # | |
Defined in Shpadoinkle.Widgets.Form.Dropdown hygiene :: Applicative f => (Hygiene -> f Hygiene) -> Dropdown AtleastOne a -> f (Dropdown AtleastOne a) Source # value :: (Applicative f, Ord a) => (Val (Dropdown AtleastOne) a -> f (Val (Dropdown AtleastOne) a)) -> Dropdown AtleastOne a -> f (Dropdown AtleastOne a) Source # |
Instances
getHygiene :: Control g => g a -> Hygiene Source #