| Copyright | ©2020 James Alexander Feldman-Crough |
|---|---|
| License | MPL-2.0 |
| Maintainer | alex@fldcr.com |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Void.HKT
Description
Synopsis
- data family Void :: k
- class Uninhabited a where
- absurd :: a -> b
Documentation
data family Void :: k Source #
A poly-kinded, uninhabited type family.
Instances
| Functor (Void :: Type -> Type) Source # | |
| Bifunctor (Void :: Type -> Type -> Type) Source # | |
| Choice (Void :: Type -> Type -> Type) Source # | |
| Strong (Void :: Type -> Type -> Type) Source # | |
| Profunctor (Void :: Type -> Type -> Type) Source # | |
Defined in Data.Void.HKT | |
| Uninhabited (Void :: Type) Source # | |
Defined in Data.Void.HKT | |
| Functor (Void a) Source # | |
| Bifunctor (Void a) Source # | |
| Choice (Void a) Source # | |
| Strong (Void a) Source # | |
| Profunctor (Void a) Source # | |
Defined in Data.Void.HKT Methods dimap :: (a0 -> b) -> (c -> d) -> Void a b c -> Void a a0 d # lmap :: (a0 -> b) -> Void a b c -> Void a a0 c # rmap :: (b -> c) -> Void a a0 b -> Void a a0 c # (#.) :: forall a0 b c q. Coercible c b => q b c -> Void a a0 b -> Void a a0 c # (.#) :: forall a0 b c q. Coercible b a0 => Void a b c -> q a0 b -> Void a a0 c # | |
| Uninhabited (Void a) Source # | |
Defined in Data.Void.HKT | |
| Functor (Void a b) Source # | |
| Uninhabited (Void a b) Source # | |
Defined in Data.Void.HKT | |
| Uninhabited (Void a b c) Source # | |
Defined in Data.Void.HKT | |
| data Void Source # | The uninhabited type taking no arguments. |
Defined in Data.Void.HKT data Void | |
| newtype Void Source # | The uninhabited type taking three arguments. |
Defined in Data.Void.HKT | |
| newtype Void Source # | The uninhabited type taking two arguments. |
Defined in Data.Void.HKT | |
| newtype Void Source # | The uninhabited type taking one argument. |
Defined in Data.Void.HKT | |
class Uninhabited a where Source #
Defines uninhabited types.
Methods
If a is an uninhabited type, we will never receive a value of type
a and thus we can return a value of any type.
Instances
| Uninhabited (Void :: Type) Source # | |
Defined in Data.Void.HKT | |
| Uninhabited (Void a) Source # | |
Defined in Data.Void.HKT | |
| Uninhabited (Void a b) Source # | |
Defined in Data.Void.HKT | |
| Uninhabited (Void a b c) Source # | |
Defined in Data.Void.HKT | |