incipit-base-0.6.1.1: A Prelude for Polysemy – Base Reexports
Safe HaskellNone
LanguageGHC2021

Incipit.TypeError

Description

 
Synopsis

Documentation

type family (l :: k1) <> (r :: k2) :: ErrorMessage where ... infixl 5 Source #

Concat two error message strings.

Equations

(l :: k1) <> (r :: k2) = ToErrorMessage l ':<>: ToErrorMessage r 

type family (t :: k1) % (b :: k2) :: ErrorMessage where ... infixr 4 Source #

Concat two error message strings with a newline.

Equations

(t :: k1) % (b :: k2) = ToErrorMessage t ':$$: ToErrorMessage b 

type family ToErrorMessage (t :: k) :: ErrorMessage where ... Source #

Convert a Symbol, ErrorMessage or type to an ErrorMessage.

Equations

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

type family Undefined :: k where ... Source #

Placeholder similar to undefined.

Equations

Undefined = TypeError ('Text "undefined") :: k