Copyright | (C) 2018 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Ryan Scott |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- class PMonoid (a :: Type) where
- class SSemigroup a => SMonoid a where
- sMempty :: Sing (MemptySym0 :: a)
- sMappend :: forall (t :: a) (t :: a). Sing t -> Sing t -> Sing (Apply (Apply MappendSym0 t) t :: a)
- sMconcat :: forall (t :: [a]). Sing t -> Sing (Apply MconcatSym0 t :: a)
- type family Sing :: k -> Type
- data SDual :: forall a. Dual a -> Type where
- data SAll :: All -> Type where
- data SAny :: Any -> Type where
- data SSum :: forall a. Sum a -> Type where
- data SProduct :: forall a. Product a -> Type where
- data SFirst :: forall a. First a -> Type where
- data SLast :: forall a. Last a -> Type where
- type family GetDual (a :: Dual (a :: Type)) :: a where ...
- type family GetAll (a :: All) :: Bool where ...
- type family GetAny (a :: Any) :: Bool where ...
- type family GetSum (a :: Sum (a :: Type)) :: a where ...
- type family GetProduct (a :: Product (a :: Type)) :: a where ...
- type family GetFirst (a :: First (a :: Type)) :: Maybe a where ...
- type family GetLast (a :: Last (a :: Type)) :: Maybe a where ...
- type MemptySym0 = Mempty
- data MappendSym0 :: forall a6989586621680364721. (~>) a6989586621680364721 ((~>) a6989586621680364721 a6989586621680364721)
- data MappendSym1 (arg6989586621680364860 :: a6989586621680364721) :: (~>) a6989586621680364721 a6989586621680364721
- type MappendSym2 (arg6989586621680364860 :: a6989586621680364721) (arg6989586621680364861 :: a6989586621680364721) = Mappend arg6989586621680364860 arg6989586621680364861
- data MconcatSym0 :: forall a6989586621680364721. (~>) [a6989586621680364721] a6989586621680364721
- type MconcatSym1 (arg6989586621680364864 :: [a6989586621680364721]) = Mconcat arg6989586621680364864
- data DualSym0 :: forall (a6989586621679091700 :: Type). (~>) a6989586621679091700 (Dual (a6989586621679091700 :: Type))
- type DualSym1 (t6989586621679850147 :: a6989586621679091700) = 'Dual t6989586621679850147
- data GetDualSym0 :: forall (a6989586621679091700 :: Type). (~>) (Dual (a6989586621679091700 :: Type)) a6989586621679091700
- type GetDualSym1 (a6989586621679850144 :: Dual (a6989586621679091700 :: Type)) = GetDual a6989586621679850144
- data AllSym0 :: (~>) Bool All
- type AllSym1 (t6989586621679850161 :: Bool) = 'All t6989586621679850161
- data GetAllSym0 :: (~>) All Bool
- type GetAllSym1 (a6989586621679850158 :: All) = GetAll a6989586621679850158
- data AnySym0 :: (~>) Bool Any
- type AnySym1 (t6989586621679850175 :: Bool) = 'Any t6989586621679850175
- data GetAnySym0 :: (~>) Any Bool
- type GetAnySym1 (a6989586621679850172 :: Any) = GetAny a6989586621679850172
- data SumSym0 :: forall (a6989586621679091685 :: Type). (~>) a6989586621679091685 (Sum (a6989586621679091685 :: Type))
- type SumSym1 (t6989586621679850194 :: a6989586621679091685) = 'Sum t6989586621679850194
- data GetSumSym0 :: forall (a6989586621679091685 :: Type). (~>) (Sum (a6989586621679091685 :: Type)) a6989586621679091685
- type GetSumSym1 (a6989586621679850191 :: Sum (a6989586621679091685 :: Type)) = GetSum a6989586621679850191
- data ProductSym0 :: forall (a6989586621679091690 :: Type). (~>) a6989586621679091690 (Product (a6989586621679091690 :: Type))
- type ProductSym1 (t6989586621679850213 :: a6989586621679091690) = 'Product t6989586621679850213
- data GetProductSym0 :: forall (a6989586621679091690 :: Type). (~>) (Product (a6989586621679091690 :: Type)) a6989586621679091690
- type GetProductSym1 (a6989586621679850210 :: Product (a6989586621679091690 :: Type)) = GetProduct a6989586621679850210
- data FirstSym0 :: forall (a6989586621679091750 :: Type). (~>) (Maybe a6989586621679091750) (First (a6989586621679091750 :: Type))
- type FirstSym1 (t6989586621680368291 :: Maybe a6989586621679091750) = 'First t6989586621680368291
- data GetFirstSym0 :: forall (a6989586621679091750 :: Type). (~>) (First (a6989586621679091750 :: Type)) (Maybe a6989586621679091750)
- type GetFirstSym1 (a6989586621680368288 :: First (a6989586621679091750 :: Type)) = GetFirst a6989586621680368288
- data LastSym0 :: forall (a6989586621679091745 :: Type). (~>) (Maybe a6989586621679091745) (Last (a6989586621679091745 :: Type))
- type LastSym1 (t6989586621680368314 :: Maybe a6989586621679091745) = 'Last t6989586621680368314
- data GetLastSym0 :: forall (a6989586621679091745 :: Type). (~>) (Last (a6989586621679091745 :: Type)) (Maybe a6989586621679091745)
- type GetLastSym1 (a6989586621680368311 :: Last (a6989586621679091745 :: Type)) = GetLast a6989586621680368311
Documentation
class PMonoid (a :: Type) Source #
Instances
PMonoid Ordering Source # | |
PMonoid Symbol Source # | |
PMonoid () Source # | |
PMonoid All Source # | |
PMonoid Any Source # | |
PMonoid [a] Source # | |
PMonoid (Maybe a) Source # | |
PMonoid (Min a) Source # | |
PMonoid (Max a) Source # | |
PMonoid (WrappedMonoid m) Source # | |
PMonoid (Option a) Source # | |
PMonoid (Identity a) Source # | |
PMonoid (First a) Source # | |
PMonoid (Last a) Source # | |
PMonoid (Dual a) Source # | |
PMonoid (Sum a) Source # | |
PMonoid (Product a) Source # | |
PMonoid (Down a) Source # | |
PMonoid (a, b) Source # | |
PMonoid (a ~> b) Source # | |
PMonoid (a, b, c) Source # | |
PMonoid (Const a b) Source # | |
PMonoid (a, b, c, d) Source # | |
PMonoid (a, b, c, d, e) Source # | |
class SSemigroup a => SMonoid a where Source #
sMempty :: Sing (MemptySym0 :: a) Source #
sMappend :: forall (t :: a) (t :: a). Sing t -> Sing t -> Sing (Apply (Apply MappendSym0 t) t :: a) Source #
default sMappend :: forall (t :: a) (t :: a). (Apply (Apply MappendSym0 t) t :: a) ~ Apply (Apply Mappend_6989586621680364868Sym0 t) t => Sing t -> Sing t -> Sing (Apply (Apply MappendSym0 t) t :: a) Source #
sMconcat :: forall (t :: [a]). Sing t -> Sing (Apply MconcatSym0 t :: a) Source #
default sMconcat :: forall (t :: [a]). (Apply MconcatSym0 t :: a) ~ Apply Mconcat_6989586621680364883Sym0 t => Sing t -> Sing (Apply MconcatSym0 t :: a) Source #
Instances
type family Sing :: k -> Type Source #
The singleton kind-indexed type family.
Instances
data SAll :: All -> Type where Source #
Instances
SDecide Bool => TestCoercion SAll Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal | |
SDecide Bool => TestEquality SAll Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal | |
ShowSing Bool => Show (SAll z) Source # | |
data SAny :: Any -> Type where Source #
Instances
SDecide Bool => TestCoercion SAny Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal | |
SDecide Bool => TestEquality SAny Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal | |
ShowSing Bool => Show (SAny z) Source # | |
data SProduct :: forall a. Product a -> Type where Source #
SProduct | |
|
type family GetProduct (a :: Product (a :: Type)) :: a where ... Source #
GetProduct ('Product field) = field |
Defunctionalization symbols
type MemptySym0 = Mempty Source #
data MappendSym0 :: forall a6989586621680364721. (~>) a6989586621680364721 ((~>) a6989586621680364721 a6989586621680364721) Source #
Instances
SMonoid a => SingI (MappendSym0 :: TyFun a (a ~> a) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid sing :: Sing MappendSym0 Source # | |
SuppressUnusedWarnings (MappendSym0 :: TyFun a6989586621680364721 (a6989586621680364721 ~> a6989586621680364721) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (MappendSym0 :: TyFun a6989586621680364721 (a6989586621680364721 ~> a6989586621680364721) -> Type) (arg6989586621680364860 :: a6989586621680364721) Source # | |
Defined in Data.Singletons.Prelude.Monoid type Apply (MappendSym0 :: TyFun a6989586621680364721 (a6989586621680364721 ~> a6989586621680364721) -> Type) (arg6989586621680364860 :: a6989586621680364721) = MappendSym1 arg6989586621680364860 |
data MappendSym1 (arg6989586621680364860 :: a6989586621680364721) :: (~>) a6989586621680364721 a6989586621680364721 Source #
Instances
(SMonoid a, SingI d) => SingI (MappendSym1 d :: TyFun a a -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid sing :: Sing (MappendSym1 d) Source # | |
SuppressUnusedWarnings (MappendSym1 arg6989586621680364860 :: TyFun a6989586621680364721 a6989586621680364721 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (MappendSym1 arg6989586621680364860 :: TyFun a a -> Type) (arg6989586621680364861 :: a) Source # | |
Defined in Data.Singletons.Prelude.Monoid type Apply (MappendSym1 arg6989586621680364860 :: TyFun a a -> Type) (arg6989586621680364861 :: a) = Mappend arg6989586621680364860 arg6989586621680364861 |
type MappendSym2 (arg6989586621680364860 :: a6989586621680364721) (arg6989586621680364861 :: a6989586621680364721) = Mappend arg6989586621680364860 arg6989586621680364861 Source #
data MconcatSym0 :: forall a6989586621680364721. (~>) [a6989586621680364721] a6989586621680364721 Source #
Instances
SMonoid a => SingI (MconcatSym0 :: TyFun [a] a -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid sing :: Sing MconcatSym0 Source # | |
SuppressUnusedWarnings (MconcatSym0 :: TyFun [a6989586621680364721] a6989586621680364721 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (MconcatSym0 :: TyFun [a] a -> Type) (arg6989586621680364864 :: [a]) Source # | |
Defined in Data.Singletons.Prelude.Monoid type Apply (MconcatSym0 :: TyFun [a] a -> Type) (arg6989586621680364864 :: [a]) = Mconcat arg6989586621680364864 |
type MconcatSym1 (arg6989586621680364864 :: [a6989586621680364721]) = Mconcat arg6989586621680364864 Source #
data DualSym0 :: forall (a6989586621679091700 :: Type). (~>) a6989586621679091700 (Dual (a6989586621679091700 :: Type)) Source #
Instances
SingI (DualSym0 :: TyFun a (Dual a) -> Type) Source # | |
SuppressUnusedWarnings (DualSym0 :: TyFun a6989586621679091700 (Dual a6989586621679091700) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (DualSym0 :: TyFun a (Dual a) -> Type) (t6989586621679850147 :: a) Source # | |
data GetDualSym0 :: forall (a6989586621679091700 :: Type). (~>) (Dual (a6989586621679091700 :: Type)) a6989586621679091700 Source #
Instances
SuppressUnusedWarnings (GetDualSym0 :: TyFun (Dual a6989586621679091700) a6989586621679091700 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (GetDualSym0 :: TyFun (Dual a) a -> Type) (a6989586621679850144 :: Dual a) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
type GetDualSym1 (a6989586621679850144 :: Dual (a6989586621679091700 :: Type)) = GetDual a6989586621679850144 Source #
data AllSym0 :: (~>) Bool All Source #
Instances
SingI AllSym0 Source # | |
SuppressUnusedWarnings AllSym0 Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply AllSym0 (t6989586621679850161 :: Bool) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
data GetAllSym0 :: (~>) All Bool Source #
Instances
SuppressUnusedWarnings GetAllSym0 Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply GetAllSym0 (a6989586621679850158 :: All) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
type GetAllSym1 (a6989586621679850158 :: All) = GetAll a6989586621679850158 Source #
data AnySym0 :: (~>) Bool Any Source #
Instances
SingI AnySym0 Source # | |
SuppressUnusedWarnings AnySym0 Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply AnySym0 (t6989586621679850175 :: Bool) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
data GetAnySym0 :: (~>) Any Bool Source #
Instances
SuppressUnusedWarnings GetAnySym0 Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply GetAnySym0 (a6989586621679850172 :: Any) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
type GetAnySym1 (a6989586621679850172 :: Any) = GetAny a6989586621679850172 Source #
data SumSym0 :: forall (a6989586621679091685 :: Type). (~>) a6989586621679091685 (Sum (a6989586621679091685 :: Type)) Source #
Instances
SingI (SumSym0 :: TyFun a (Sum a) -> Type) Source # | |
SuppressUnusedWarnings (SumSym0 :: TyFun a6989586621679091685 (Sum a6989586621679091685) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (SumSym0 :: TyFun a (Sum a) -> Type) (t6989586621679850194 :: a) Source # | |
data GetSumSym0 :: forall (a6989586621679091685 :: Type). (~>) (Sum (a6989586621679091685 :: Type)) a6989586621679091685 Source #
Instances
SuppressUnusedWarnings (GetSumSym0 :: TyFun (Sum a6989586621679091685) a6989586621679091685 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (GetSumSym0 :: TyFun (Sum a) a -> Type) (a6989586621679850191 :: Sum a) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
type GetSumSym1 (a6989586621679850191 :: Sum (a6989586621679091685 :: Type)) = GetSum a6989586621679850191 Source #
data ProductSym0 :: forall (a6989586621679091690 :: Type). (~>) a6989586621679091690 (Product (a6989586621679091690 :: Type)) Source #
Instances
SingI (ProductSym0 :: TyFun a (Product a) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal sing :: Sing ProductSym0 Source # | |
SuppressUnusedWarnings (ProductSym0 :: TyFun a6989586621679091690 (Product a6989586621679091690) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (ProductSym0 :: TyFun a (Product a) -> Type) (t6989586621679850213 :: a) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal |
type ProductSym1 (t6989586621679850213 :: a6989586621679091690) = 'Product t6989586621679850213 Source #
data GetProductSym0 :: forall (a6989586621679091690 :: Type). (~>) (Product (a6989586621679091690 :: Type)) a6989586621679091690 Source #
Instances
SuppressUnusedWarnings (GetProductSym0 :: TyFun (Product a6989586621679091690) a6989586621679091690 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal suppressUnusedWarnings :: () Source # | |
type Apply (GetProductSym0 :: TyFun (Product a) a -> Type) (a6989586621679850210 :: Product a) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal type Apply (GetProductSym0 :: TyFun (Product a) a -> Type) (a6989586621679850210 :: Product a) = GetProduct a6989586621679850210 |
type GetProductSym1 (a6989586621679850210 :: Product (a6989586621679091690 :: Type)) = GetProduct a6989586621679850210 Source #
data FirstSym0 :: forall (a6989586621679091750 :: Type). (~>) (Maybe a6989586621679091750) (First (a6989586621679091750 :: Type)) Source #
Instances
SingI (FirstSym0 :: TyFun (Maybe a) (First a) -> Type) Source # | |
SuppressUnusedWarnings (FirstSym0 :: TyFun (Maybe a6989586621679091750) (First a6989586621679091750) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (FirstSym0 :: TyFun (Maybe a) (First a) -> Type) (t6989586621680368291 :: Maybe a) Source # | |
type FirstSym1 (t6989586621680368291 :: Maybe a6989586621679091750) = 'First t6989586621680368291 Source #
data GetFirstSym0 :: forall (a6989586621679091750 :: Type). (~>) (First (a6989586621679091750 :: Type)) (Maybe a6989586621679091750) Source #
Instances
SuppressUnusedWarnings (GetFirstSym0 :: TyFun (First a6989586621679091750) (Maybe a6989586621679091750) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (GetFirstSym0 :: TyFun (First a) (Maybe a) -> Type) (a6989586621680368288 :: First a) Source # | |
Defined in Data.Singletons.Prelude.Monoid |
type GetFirstSym1 (a6989586621680368288 :: First (a6989586621679091750 :: Type)) = GetFirst a6989586621680368288 Source #
data LastSym0 :: forall (a6989586621679091745 :: Type). (~>) (Maybe a6989586621679091745) (Last (a6989586621679091745 :: Type)) Source #
Instances
SingI (LastSym0 :: TyFun (Maybe a) (Last a) -> Type) Source # | |
SuppressUnusedWarnings (LastSym0 :: TyFun (Maybe a6989586621679091745) (Last a6989586621679091745) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (LastSym0 :: TyFun (Maybe a) (Last a) -> Type) (t6989586621680368314 :: Maybe a) Source # | |
type LastSym1 (t6989586621680368314 :: Maybe a6989586621679091745) = 'Last t6989586621680368314 Source #
data GetLastSym0 :: forall (a6989586621679091745 :: Type). (~>) (Last (a6989586621679091745 :: Type)) (Maybe a6989586621679091745) Source #
Instances
SuppressUnusedWarnings (GetLastSym0 :: TyFun (Last a6989586621679091745) (Maybe a6989586621679091745) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Monoid suppressUnusedWarnings :: () Source # | |
type Apply (GetLastSym0 :: TyFun (Last a) (Maybe a) -> Type) (a6989586621680368311 :: Last a) Source # | |
Defined in Data.Singletons.Prelude.Monoid |
type GetLastSym1 (a6989586621680368311 :: Last (a6989586621679091745 :: Type)) = GetLast a6989586621680368311 Source #