grids-0.5.0.1

Safe HaskellNone
LanguageHaskell2010

Data.Grid.Internal.Errors

Synopsis

Documentation

type family (b :: Bool) ?! (e :: ErrorMessage) :: Constraint where ... infixr 1 Source #

Equations

True ?! _ = () 
False ?! e = TypeError e 

data ErrorMessage where #

A description of a custom type error.

Constructors

Text :: forall. Symbol -> ErrorMessage

Show the text as is.

ShowType :: forall t. t -> ErrorMessage

Pretty print the type. ShowType :: k -> ErrorMessage

(:<>:) :: forall. ErrorMessage -> ErrorMessage -> ErrorMessage infixl 6

Put two pieces of error message next to each other.

(:$$:) :: forall. ErrorMessage -> ErrorMessage -> ErrorMessage infixl 5

Stack two pieces of error message on top of each other.