:: String -> Int is:exact -package:safe -package:speculate -package:hxt -package:monads-tf -package:polysemy -package:string-conversions -package:ghc-lib-parser package:hledger
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.
Raises an
error with a printf-specific prefix on the message
string.
A version of errorWithoutStackTrace that adds a usage hint.
Simpler alias for errorWithoutStackTrace
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.