HORIZON HASKELLDocslts/ghc-10.0.x8174fa42026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8174fa4 · 2026-10-11

Modulevoid-0.7.4Haskell98

Data.Void.Unsafe

  • 2 values
  • Packagevoid-0.7.4
  • Exports2
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceUnsafe.hs
valueunsafeVacuous :: Functor f => f Void -> f a
#

If Void is uninhabited then any Functor that holds only values of the type Void is holding no values.

This is only safe for valid functors that do not perform GADT-like analysis on the argument.

valueunsafeVacuousM :: Monad m => m Void -> m a
#

If Void is uninhabited then any Monad that holds values of type Void is holding no values.

This is only safe for valid monads that do not perform GADT-like analysis on the argument.