Copyright | (C) 2008-2014 Edward Kmett |
---|---|
License | BSD-style (see the file libraries/base/LICENSE) |
Maintainer | Edward Kmett <[email protected]> |
Stability | provisional |
Portability | portable |
Safe Haskell | Safe |
Language | Haskell2010 |
A logically uninhabited data type, used to indicate that a given term should not exist.
Since: base-4.8.0.0
Uninhabited data type
Since: base-4.8.0.0
Eq Void | Since: base-4.8.0.0 |
Data Void | Since: base-4.8.0.0 |
Defined in Data.Void Methodsgfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Void -> c Void Source gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Void Source toConstr :: Void -> Constr Source dataTypeOf :: Void -> DataType Source dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c Void) Source dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Void) Source gmapT :: (forall b. Data b => b -> b) -> Void -> Void Source gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Void -> r Source gmapQr :: forall r r'. (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Void -> r Source gmapQ :: (forall d. Data d => d -> u) -> Void -> [u] Source gmapQi :: Int -> (forall d. Data d => d -> u) -> Void -> u Source gmapM :: Monad m => (forall d. Data d => d -> m d) -> Void -> m Void Source gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Void -> m Void Source gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Void -> m Void Source | |
Ord Void | Since: base-4.8.0.0 |
Read Void |
Reading a Since: base-4.8.0.0 |
Show Void | Since: base-4.8.0.0 |
Ix Void | Since: base-4.8.0.0 |
Generic Void | Since: base-4.8.0.0 |
Semigroup Void | Since: base-4.9.0.0 |
Exception Void | Since: base-4.8.0.0 |
Defined in Data.Void MethodstoException :: Void -> SomeException Source fromException :: SomeException -> Maybe Void Source displayException :: Void -> String Source | |
type Rep Void | |
Since Void
values logically don't exist, this witnesses the logical reasoning tool of "ex falso quodlibet".
>>> let x :: Either Void Int; x = Right 5 >>> :{ case x of Right r -> r Left l -> absurd l :} 5
Since: base-4.8.0.0
vacuous :: Functor f => f Void -> f a Source
If Void
is uninhabited then any Functor
that holds only values of type Void
is holding no values.
Since: base-4.8.0.0
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.8.3/docs/html/libraries/base-4.13.0.0/Data-Void.html