Copyright | (C) 2018 Ryan Scott |
---|---|
License | BSD-style (see LICENSE) |
Maintainer | Richard Eisenberg (rae@cs.brynmawr.edu) |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Exports the promoted and singled versions of the Const
data type.
Synopsis
- data family Sing :: k -> Type
- type SConst = (Sing :: Const a b -> Type)
- type family GetConst (x :: Const a b) :: a where ...
- data ConstSym0 :: forall (a6989586621679092839 :: Type) k6989586621679092838 (b6989586621679092840 :: k6989586621679092838). (~>) a6989586621679092839 (Const (a6989586621679092839 :: Type) (b6989586621679092840 :: k6989586621679092838))
- type ConstSym1 (t6989586621680712043 :: a6989586621679092839) = Const t6989586621680712043
- data GetConstSym0 :: forall a6989586621680712358 b6989586621680712359. (~>) (Const a6989586621680712358 b6989586621680712359) a6989586621680712358
- type GetConstSym1 (x6989586621680712360 :: Const a6989586621680712358 b6989586621680712359) = GetConst x6989586621680712360
The Const
singleton
data family Sing :: k -> Type Source #
The singleton kind-indexed data family.
Instances
SDecide k => TestCoercion (Sing :: k -> Type) Source # | |
Defined in Data.Singletons.Decide | |
SDecide k => TestEquality (Sing :: k -> Type) Source # | |
Defined in Data.Singletons.Decide | |
Show (SSymbol s) Source # | |
Show (SNat n) Source # | |
Eq (Sing a) Source # | |
Ord (Sing a) Source # | |
Show (Sing z) Source # | |
(ShowSing a, ShowSing [a]) => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
Show (Sing z) Source # | |
(ShowSing a, ShowSing b) => Show (Sing z) Source # | |
Show (Sing a) Source # | |
Show (Sing z) Source # | |
(ShowSing a, ShowSing b) => Show (Sing z) Source # | |
(ShowSing a, ShowSing b, ShowSing c) => Show (Sing z) Source # | |
(ShowSing a, ShowSing b, ShowSing c, ShowSing d) => Show (Sing z) Source # | |
(ShowSing a, ShowSing b, ShowSing c, ShowSing d, ShowSing e) => Show (Sing z) Source # | |
(ShowSing a, ShowSing b, ShowSing c, ShowSing d, ShowSing e, ShowSing f) => Show (Sing z) Source # | |
(ShowSing a, ShowSing b, ShowSing c, ShowSing d, ShowSing e, ShowSing f, ShowSing g) => Show (Sing z) Source # | |
Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
(ShowSing a, ShowSing b) => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing m => Show (Sing z) Source # | |
ShowSing (Maybe a) => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing (Maybe a) => Show (Sing z) Source # | |
ShowSing (Maybe a) => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing Bool => Show (Sing z) Source # | |
ShowSing Bool => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
ShowSing a => Show (Sing z) Source # | |
(ShowSing a, ShowSing [a]) => Show (Sing z) Source # | |
data Sing (a :: Bool) Source # | |
data Sing (a :: Ordering) Source # | |
data Sing (n :: Nat) Source # | |
data Sing (n :: Symbol) Source # | |
Defined in Data.Singletons.TypeLits.Internal | |
data Sing (a :: ()) Source # | |
Defined in Data.Singletons.Prelude.Instances | |
data Sing (a :: Void) Source # | |
Defined in Data.Singletons.Prelude.Instances | |
data Sing (a :: All) Source # | |
data Sing (a :: Any) Source # | |
data Sing (a :: PErrorMessage) Source # | |
Defined in Data.Singletons.TypeError data Sing (a :: PErrorMessage) where
| |
data Sing (b :: [a]) Source # | |
data Sing (b :: Maybe a) Source # | |
data Sing (a :: TYPE rep) Source # | A choice of singleton for the kind Conceivably, one could generalize this instance to `Sing :: k -> Type` for
any kind We cannot produce explicit singleton values for everything in |
Defined in Data.Singletons.TypeRepTYPE | |
data Sing (b :: Min a) Source # | |
data Sing (b :: Max a) Source # | |
data Sing (b :: First a) Source # | |
data Sing (b :: Last a) Source # | |
data Sing (a :: WrappedMonoid m) Source # | |
Defined in Data.Singletons.Prelude.Semigroup.Internal data Sing (a :: WrappedMonoid m) where
| |
data Sing (b :: Option a) Source # | |
data Sing (b :: Identity a) Source # | |
data Sing (b :: First a) Source # | |
data Sing (b :: Last a) Source # | |
data Sing (b :: Dual a) Source # | |
data Sing (b :: Sum a) Source # | |
data Sing (b :: Product a) Source # | |
data Sing (b :: Down a) Source # | |
data Sing (b :: NonEmpty a) Source # | |
data Sing (c :: Either a b) Source # | |
data Sing (c :: (a, b)) Source # | |
data Sing (c :: Arg a b) Source # | |
data Sing (f :: k1 ~> k2) Source # | |
data Sing (d :: (a, b, c)) Source # | |
data Sing (c :: Const a b) Source # | |
data Sing (e :: (a, b, c, d)) Source # | |
data Sing (f :: (a, b, c, d, e)) Source # | |
data Sing (g :: (a, b, c, d, e, f)) Source # | |
data Sing (h :: (a, b, c, d, e, f, g)) Source # | |
Defined in Data.Singletons.Prelude.Instances |
Defunctionalization symbols
data ConstSym0 :: forall (a6989586621679092839 :: Type) k6989586621679092838 (b6989586621679092840 :: k6989586621679092838). (~>) a6989586621679092839 (Const (a6989586621679092839 :: Type) (b6989586621679092840 :: k6989586621679092838)) Source #
Instances
SingI (ConstSym0 :: TyFun a6989586621679092839 (Const a6989586621679092839 b6989586621679092840) -> Type) Source # | |
SuppressUnusedWarnings (ConstSym0 :: TyFun a6989586621679092839 (Const a6989586621679092839 b6989586621679092840) -> Type) Source # | |
Defined in Data.Singletons.Prelude.Const suppressUnusedWarnings :: () Source # | |
type Apply (ConstSym0 :: TyFun a (Const a b6989586621679092840) -> Type) (t6989586621680712043 :: a) Source # | |
data GetConstSym0 :: forall a6989586621680712358 b6989586621680712359. (~>) (Const a6989586621680712358 b6989586621680712359) a6989586621680712358 Source #
Instances
SuppressUnusedWarnings (GetConstSym0 :: TyFun (Const a6989586621680712358 b6989586621680712359) a6989586621680712358 -> Type) Source # | |
Defined in Data.Singletons.Prelude.Const suppressUnusedWarnings :: () Source # | |
type Apply (GetConstSym0 :: TyFun (Const a b) a -> Type) (x6989586621680712360 :: Const a b) Source # | |
Defined in Data.Singletons.Prelude.Const |
type GetConstSym1 (x6989586621680712360 :: Const a6989586621680712358 b6989586621680712359) = GetConst x6989586621680712360 Source #