HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduletext-icu-0.8.0.5Haskell98

Data.Text.ICU.Error

Errors thrown by bindings to the International Components for Unicode (ICU) libraries.

Most ICU functions can throw an ICUError value as an exception. Some can additionally throw a ParseError, if more detailed error information is necessary.

  • 2 types
  • 129 values
  • Packagetext-icu-0.8.0.5
  • Exports131
  • LanguageHaskell98
  • LicenceBSD-3-Clause
  • SourceError.hsc

Types

5 declarations
newtypenewtype ICUError
#

ICU error type. This is an instance of the Exception type class. A value of this type may be thrown as an exception by most ICU functions.

Instances4Eq, Show, Exception, NFData
  • Eq ICUErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.Internal
  • Show ICUErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.Internal
  • Exception ICUErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.Internal
  • NFData ICUErrorDefined in text-icu-0.8.0.5 · Data.Text.ICU.Error.Internal
datadata ParseError
#

Detailed information about parsing errors. Used by ICU parsing engines that parse long rules, patterns, or programs, where the text being parsed is long enough that more information than an ICUError is needed to localize the error.

Instances3Show, Exception, NFData
valueerrLine :: ParseError -> Maybe Int
#

The line on which the error occured. If the parser uses this field, it sets it to the line number of the source text line on which the error appears, which will be be a positive value. If the parser does not support line numbers, the value will be Nothing.

valueerrOffset :: ParseError -> Maybe Int
#

The character offset to the error. If the errLine field is Just some value, then this field contains the offset from the beginning of the line that contains the error. Otherwise, it represents the offset from the start of the text. If the parser does not support this field, it will have a value of Nothing.

Functions

4 declarations

Warnings

8 declarations

Errors

30 declarations

Transliterator errors

Formatting API parsing errors

Break iterator errors

Regular expression errors

IDNA errors