Agda-2.5.1.2: A dependently typed functional programming language and proof assistant

Agda.Utils.Impossible

Description

An interface for reporting "impossible" errors

Synopsis

# Documentation

"Impossible" errors, annotated with a file name and a line number corresponding to the source code location of the error.

Constructors

 Impossible String Integer

Instances

 Source # MethodsshowList :: [Impossible] -> ShowS # Source # Methods

Abort by throwing an "impossible" error. You should not use this function directly. Instead use the macro in undefined.h.

catchImpossible :: IO a -> (Impossible -> IO a) -> IO a Source #

Catch an "impossible" error, if possible.