| Copyright | (C) 2008-2014 Edward Kmett |
|---|---|
| License | BSD-style (see the file libraries/base/LICENSE) |
| Maintainer | Edward Kmett <ekmett@gmail.com> |
| Stability | provisional |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Data.Void
Description
A logically uninhabited data type, used to indicate that a given term should not exist.
Since: 4.8.0.0
Uninhabited data type
Since: 4.8.0.0
| EqVoidSource# | Since: 4.8.0.0 |
| DataVoidSource# | Since: 4.8.0.0 |
Instance detailsDefined inData.Void Methods gfoldl :: (forall d b.Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) ->Void -> cVoidSource# gunfold :: (forall b r.Data b => c (b -> r) -> c r) -> (forall r. r -> c r) ->Constr -> cVoidSource# toConstr ::Void ->ConstrSource# dataTypeOf ::Void ->DataTypeSource# dataCast1 ::Typeable t => (forall d.Data d => c (t d)) ->Maybe (cVoid)Source# dataCast2 ::Typeable t => (forall d e. (Data d,Data e) => c (t d e)) ->Maybe (cVoid)Source# gmapT :: (forall b.Data b => b -> b) ->Void ->VoidSource# gmapQl :: (r -> r' -> r) -> r -> (forall d.Data d => d -> r') ->Void -> rSource# gmapQr :: (r' -> r -> r) -> r -> (forall d.Data d => d -> r') ->Void -> rSource# gmapQ :: (forall d.Data d => d -> u) ->Void -> [u]Source# gmapQi ::Int -> (forall d.Data d => d -> u) ->Void -> uSource# gmapM ::Monad m => (forall d.Data d => d -> m d) ->Void -> mVoidSource# gmapMp ::MonadPlus m => (forall d.Data d => d -> m d) ->Void -> mVoidSource# gmapMo ::MonadPlus m => (forall d.Data d => d -> m d) ->Void -> mVoidSource# | |
| OrdVoidSource# | Since: 4.8.0.0 |
| ReadVoidSource# | Reading a Since: 4.8.0.0 |
| ShowVoidSource# | Since: 4.8.0.0 |
| IxVoidSource# | Since: 4.8.0.0 |
| GenericVoidSource# | |
| SemigroupVoidSource# | Since: 4.9.0.0 |
| ExceptionVoidSource# | Since: 4.8.0.0 |
Instance detailsDefined inData.Void | |
| typeRepVoidSource# | Since: 4.8.0.0 |
SinceVoid 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: 4.8.0.0
Produced byHaddock version 2.20.0