:: String -> Int -package:hledger-lib -package:speculate -package:string-conversions -package:ViennaRNAParser -package:polysemy -package:ghc -package:base -package:vty -package:locators package:hledger -is:exact -is:exact
Like strWidth, but also strips ANSI escape sequences before
calculating the width.
This is no longer used in code, as widths are calculated before adding
ANSI escape sequences, but is being kept around for now.
Synonym for
error. Used for instances where the program has
decided to exit because of invalid user input, or the user pressed
quit etc. This function allows
error to be reserved for
programmer errors.
Raises an
error with a printf-specific prefix on the message
string.
Simpler alias for errorWithoutStackTrace
A version of errorWithoutStackTrace that adds a usage hint.