Moduleone-liner-2.1Haskell2010
Generics.OneLiner.Internal
- 21 types
- 4 classes
- 17 values
- Packageone-liner-2.1
- Exports45
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceInternal.hs
family
type family Constraints' (t :: Type -> Type) (t' :: Type -> Type) (c :: Type -> Type -> Constraint) (c1 :: (Type -> Type) -> (Type -> Type) -> Constraint) :: ConstraintInstances9Constraints', …
type Constraints' Par1 Par1 c c1 = ()Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' U1 U1 c c1 = ()Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' V1 V1 c c1 = ()Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (K1 i a) (K1 i' b) c c1 = c a bDefined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (M1 i t f) (M1 i' t' f') c c1 = Constraints' f f' c c1Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (Rec1 f) (Rec1 g) c c1 = c1 f gDefined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (f :*: g) (f' :*: g') c c1 = (Constraints' f f' c c1, Constraints' g g' c c1)Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (f :+: g) (f' :+: g') c c1 = (Constraints' f f' c c1, Constraints' g g' c c1)Defined in one-liner-2.1 · Generics.OneLiner.Internaltype Constraints' (f :.: g) (f' :.: g') c c1 = (c1 f f', Constraints' g g' c c1)Defined in one-liner-2.1 · Generics.OneLiner.Internal
type
type ADTNonEmpty1' (t :: Type -> Type) (t' :: Type -> Type) = (ADT_ Identity Identity NonEmptyProfunctor t t', ADT_ Proxy Identity NonEmptyProfunctor t t')type
type ADTRecord1' (t :: Type -> Type) (t' :: Type -> Type) = (ADT_ Identity Identity RecordProfunctor t t', ADT_ Proxy Identity RecordProfunctor t t')family
type family Satisfies (p :: Type -> Type -> Type) (ks :: [(Type -> Type -> Type) -> Constraint]) :: Constraintclass
class (|-) (ks :: [(Type -> Type -> Type) -> Constraint]) (k :: (Type -> Type -> Type) -> Constraint) whereclass
class ADT_ (nullary :: Type -> Type) (unary :: Type -> Type) (ks :: [(Type -> Type -> Type) -> Constraint]) (t :: Type -> Type) (t' :: Type -> Type) whereInstances10ADT_, …
ks |- Profunctor => ADT_ nullary Identity ks Par1 Par1Defined in one-liner-2.1 · Generics.OneLiner.Internalks |- GenericEmptyProfunctor => ADT_ nullary unary ks V1 V1Defined in one-liner-2.1 · Generics.OneLiner.Internalks |- GenericUnitProfunctor => ADT_ nullary unary ks U1 U1Defined in one-liner-2.1 · Generics.OneLiner.Internalks |- Profunctor => ADT_ nullary Identity ks (Rec1 f) (Rec1 f')Defined in one-liner-2.1 · Generics.OneLiner.Internal(ks |- GenericProductProfunctor, ADT_ nullary unary ks f f', ADT_ nullary unary ks g g') => ADT_ nullary unary ks (f :*: g) (f' :*: g')Defined in one-liner-2.1 · Generics.OneLiner.Internal(ks |- GenericSumProfunctor, ADT_ nullary unary ks f f', ADT_ nullary unary ks g g') => ADT_ nullary unary ks (f :+: g) (f' :+: g')Defined in one-liner-2.1 · Generics.OneLiner.Internalks |- Profunctor => ADT_ Identity unary ks (K1 i v) (K1 i' v')Defined in one-liner-2.1 · Generics.OneLiner.Internal(ks |- Profunctor, ADT_ nullary Identity ks g g') => ADT_ nullary Identity ks (f :.: g) (f' :.: g')Defined in one-liner-2.1 · Generics.OneLiner.Internal(ks |- Profunctor, ADT_ nullary unary ks f f') => ADT_ nullary unary ks (M1 i c f) (M1 i' c' f')Defined in one-liner-2.1 · Generics.OneLiner.Internalks |- GenericConstantProfunctor => ADT_ Proxy unary ks (K1 i v) (K1 i' v)Defined in one-liner-2.1 · Generics.OneLiner.Internal
Instances6Profunctor, GenericConstantProfunctor, GenericEmptyProfunctor, GenericProductProfunctor, GenericSumProfunctor, GenericUnitProfunctor
Profunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.InternalGenericConstantProfunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.InternalGenericEmptyProfunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.InternalGenericProductProfunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.InternalGenericSumProfunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.InternalGenericUnitProfunctor CtorDefined in one-liner-2.1 · Generics.OneLiner.Internal
type
type Constraints t t' (c :: Type -> Type -> Constraint) = Constraints' (Rep t) (Rep t') c AnyTypeConstraints is a constraint type synonym, containing the constraint
requirements for an instance for t of class c.
It requires an instance of class c for each component of t.
type
type Constraints1 (t :: Type -> Type) (t' :: Type -> Type) (c :: (Type -> Type) -> (Type -> Type) -> Constraint) = Constraints' (Rep1 t) (Rep1 t') AnyType ctype
type Constraints01 (t :: Type -> Type) (t' :: Type -> Type) (c0 :: Type -> Type -> Constraint) (c1 :: (Type -> Type) -> (Type -> Type) -> Constraint) = Constraints' (Rep1 t) (Rep1 t') c0 c1type
type ADTRecord t t' = (Generic t, Generic t', ADTRecord' (Rep t) (Rep t'), Constraints t t' AnyType)type
type ADTRecord1 (t :: Type -> Type) (t' :: Type -> Type) = (Generic1 t, Generic1 t', ADTRecord1' (Rep1 t) (Rep1 t'), Constraints1 t t' AnyType)type
type ADTNonEmpty t t' = (Generic t, Generic t', ADTNonEmpty' (Rep t) (Rep t'), Constraints t t' AnyType)ADTNonEmpty is a constraint type synonym. An instance is an ADT with *at least* one constructor.
type
type ADTNonEmpty1 (t :: Type -> Type) (t' :: Type -> Type) = (Generic1 t, Generic1 t', ADTNonEmpty1' (Rep1 t) (Rep1 t'), Constraints1 t t' AnyType)Instances1AnyType
AnyType a bDefined in one-liner-2.1 · Generics.OneLiner.Internal
Automatically apply a lifted function to a polymorphic argument as many times as possible.
A constraint `FunConstraint c t` is equivalent to the conjunction of
constraints `c s` for every argument type of t.
If r is not a function type:
c a :- FunConstraints c (a -> r)
(c a, c b) :- FunConstraints c (a -> b -> r)
(c a, c b, c d) :- FunConstraints c (a -> b -> d -> r)
Methods
autoApply :: Applicative f => (forall s. c s => f s) -> f t -> f (FunResult t)
Instances2FunConstraints
FunResult r ~ r => FunConstraints c rDefined in one-liner-2.1 · Generics.OneLiner.Internal(c a, FunConstraints c b) => FunConstraints c (a -> b)Defined in one-liner-2.1 · Generics.OneLiner.Internal
Constructors
Pair a a