incipit-base-0.6.0.0: A Prelude for Polysemy – Base Reexports
Safe HaskellSafe-Inferred
LanguageGHC2021

Incipit.TypeError

Description

 
Synopsis

Documentation

type family l <> r :: ErrorMessage where ... infixl 5 Source #

Concat two error message strings.

Equations

l <> r = ToErrorMessage l ':<>: ToErrorMessage r 

type family t % b :: ErrorMessage where ... infixr 4 Source #

Concat two error message strings with a newline.

Equations

t % b = ToErrorMessage t ':$$: ToErrorMessage b 

type family ToErrorMessage t where ... Source #

Convert a Symbol, ErrorMessage or type to an ErrorMessage.

Equations

ToErrorMessage (t :: Symbol) = 'Text t 
ToErrorMessage (t :: ErrorMessage) = t 
ToErrorMessage t = 'ShowType t 

type family Undefined where ... Source #

Placeholder similar to undefined.

Equations

Undefined = TypeError ('Text "undefined")