highlight-1.0.0.2: 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.

Instances

Instances details
Show HighlightErr Source # 
Instance details

Defined in Highlight.Common.Error

handleErr :: HighlightErr -> IO a Source #

Call die with an error message based on HighlightErr.