HORIZON HASKELLDocslts/ghc-9.14.x7a6c33e2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 7a6c33e · 2026-10-12

Moduleunlifted-0.2.4.0Haskell2010

Data.Either.Void

Synopsis
  • Packageunlifted-0.2.4.0
  • Exports3
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceVoid.hs
newtypenewtype EitherVoid# (a :: ZeroBitType) (b :: ZeroBitType) where

Unboxed variant of Either. The thing possibly contained by Just has a void runtime representation. Rather than using a sum, like the more general Either# does, this represents Left with 0 and Right with 1.

It is recommended that the data constructor not be used directly. Prefer the two pattern synonyms.

Constructors