Data.Text.ICU.Types

text-icu-0.7.0.1: Bindings to the ICU library

Copyright | (c) 2010 Bryan O'Sullivan
License | BSD-style
Maintainer | bos@serpentine.com
Stability | experimental
Portability | GHC
Safe Haskell | None
Language | Haskell98

Data.Text.ICU.Types

Contents

- Widely used types

Description

Types for use when manipulating Unicode text, using the bindings to the International Components for Unicode (ICU) libraries.

Synopsis

- data LocaleName
  - = Root
  - | Locale String
  - | Current
- data ParseError

# Widely used types

data LocaleName #

The name of a locale.

Constructors

Root | The root locale. For a description of resource bundles and the root resource, see http://userguide.icu-project.org/locale/resources.
Locale String | A specific locale.
Current | The program's current locale.

Instances

Eq LocaleName # |
Methods (==) :: LocaleName -> LocaleName -> Bool # (/=) :: LocaleName -> LocaleName -> Bool #
Ord LocaleName # |
Methods compare :: LocaleName -> LocaleName -> Ordering # (<) :: LocaleName -> LocaleName -> Bool # (<=) :: LocaleName -> LocaleName -> Bool # (>) :: LocaleName -> LocaleName -> Bool # (>=) :: LocaleName -> LocaleName -> Bool # max :: LocaleName -> LocaleName -> LocaleName # min :: LocaleName -> LocaleName -> LocaleName #
Read LocaleName # |
Methods readsPrec :: Int -> ReadS LocaleName # readList :: ReadS [LocaleName] # readPrec :: ReadPrec LocaleName # readListPrec :: ReadPrec [LocaleName] #
Show LocaleName # |
Methods showsPrec :: Int -> LocaleName -> ShowS # show :: LocaleName -> String # showList :: [LocaleName] -> ShowS #
IsString LocaleName # |
Methods fromString :: String -> LocaleName #
NFData LocaleName # |
Methods rnf :: LocaleName -> () #

data 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.

Instances

Show ParseError # |
Methods showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS #
Exception ParseError # |
Methods toException :: ParseError -> SomeException # fromException :: SomeException -> Maybe ParseError # displayException :: ParseError -> String #
NFData ParseError # |
Methods rnf :: ParseError -> () #