:: String -> Int -package:hledger-lib -package:speculate -package:polysemy -package:hxt -package:string-conversions is:exact -package:ghc -package:safe -package:base -package:simple-cmd -package:numeric-prelude
Returns the display width of a string. Assumes all characters with
unknown widths are 0 width.
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.
Returns the precedence of default Haskell operators
Given a number encoded in Locator16, convert it back to an integer.
Get the hash of a string.
This util is currently used to generate an
Int used for the
internal pattern variable representation from the external pattern
variable representation (
String)
stop execution and displays an error message
raise a fatal internal error; message may have multiple lines
Same as
error but will make HDL generation fail if included in
the final circuit.
This is useful for the error case of static assertions.
Note that the error message needs to be a literal, and during HDL
generation the error message does not include a stack trace, so it had
better be descriptive.
Like
error, but throwing an
XException instead of an
ErrorCall
The
ShowX methods print these error-values as
undefined; instead of error'ing out with an exception.
Raise a CUDAException. Exceptions can be thrown from pure code, but
can only be caught in the
IO monad.
stop execution and displays an error message