morley-0.7.0: Developer tools for the Michelson Language

Safe HaskellNone
LanguageHaskell2010

Lorentz.Empty

Contents

Description

Support for uninhabited type.

Currently they are not supported my Michelson, so we provide a sort of replacement.

This module should be removed once the proposal is implemented: https://gitlab.com/tezos/tezos/issues/662

Synopsis

Documentation

data Empty Source #

Replacement for uninhabited type.

Instances
Generic Empty Source # 
Instance details

Defined in Lorentz.Empty

Associated Types

type Rep Empty :: Type -> Type #

Methods

from :: Empty -> Rep Empty x #

to :: Rep Empty x -> Empty #

IsoValue Empty Source # 
Instance details

Defined in Lorentz.Empty

Associated Types

type ToT Empty :: T Source #

TypeHasDoc Empty Source # 
Instance details

Defined in Lorentz.Empty

type Rep Empty Source # 
Instance details

Defined in Lorentz.Empty

type Rep Empty = D1 (MetaData "Empty" "Lorentz.Empty" "morley-0.7.0-LSdrRUk5DEH474ZZZf5NDz" True) (C1 (MetaCons "Empty" PrefixI False) (S1 (MetaSel (Nothing :: Maybe Symbol) NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ())))
type ToT Empty Source # 
Instance details

Defined in Lorentz.Empty

absurd_ :: (Empty ': s) :-> s' Source #

Witness of that this code is unreachable.

Orphan instances