highlight-1.0.0.1: Command line tool for highlighting parts of files matching a regex.

Safe HaskellNone
LanguageHaskell2010

Highlight.Common.Error

Synopsis

Documentation

data HighlightErr Source #

Sum-type representing all errors that can be thrown by this application.

Constructors

HighlightRegexCompileErr RawRegex

Error when trying to compile the RawRegex into a regular expression.

handleErr :: HighlightErr -> IO a Source #

Call die with an error message based on HighlightErr.