| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Shpadoinkle.Widgets.Types.ConsideredChoice
Documentation
data ConsideredChoice p a Source #
Constructors
| ConsideredChoice | |
Fields
| |
Instances
type family Considered (p :: Pick) :: Type -> Type where ... Source #
Equations
| Considered One = Maybe | |
| Considered AtleastOne = Maybe | |
| Considered Many = Set |
class PickToConsidered (p :: Pick) where Source #
Methods
pickToConsidered' :: Proxy p -> a -> Considered p a Source #
Instances
| PickToConsidered One Source # | |
Defined in Shpadoinkle.Widgets.Types.ConsideredChoice Methods pickToConsidered' :: Proxy One -> a -> Considered One a Source # | |
| PickToConsidered AtleastOne Source # | |
Defined in Shpadoinkle.Widgets.Types.ConsideredChoice Methods pickToConsidered' :: Proxy AtleastOne -> a -> Considered AtleastOne a Source # | |
| PickToConsidered Many Source # | |
Defined in Shpadoinkle.Widgets.Types.ConsideredChoice Methods pickToConsidered' :: Proxy Many -> a -> Considered Many a Source # | |
pickToConsidered :: forall (p :: Pick) a. PickToConsidered p => a -> Considered p a Source #
class (Selection f p, PickToConsidered p) => Consideration f (p :: Pick) where Source #
Methods
consider :: Ord a => Considered p a -> f p a -> f p a Source #
choose :: Ord a => f p a -> f p a Source #
choice :: Ord a => f p a -> Choice p a Source #
considered :: Ord a => f p a -> Considered p a Source #
Instances
consider' :: forall (f :: Pick -> Type -> Type) p a. (Ord a, Consideration f p) => a -> f p a -> f p a Source #
unsafeConsiderFirst :: (Consideration f p, Ord a) => f p a -> f p a Source #
unsafeConsiderLast :: (Consideration f p, Ord a) => f p a -> f p a Source #
considerNext :: (Considered p a ~ Maybe a, Consideration f p, Ord a) => f p a -> f p a Source #
considerPrev :: (Considered p a ~ Maybe a, Consideration f p, Ord a) => f p a -> f p a Source #