text-icu-0.7.1.0: 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

Instances details

Eq LocaleName # |
Instance details Defined in Data.Text.ICU.Internal Methods (==) :: LocaleName -> LocaleName -> Bool # (/=) :: LocaleName -> LocaleName -> Bool #
Ord LocaleName # |
Instance details Defined in Data.Text.ICU.Internal 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 # |
Instance details Defined in Data.Text.ICU.Internal Methods readsPrec :: Int -> ReadS LocaleName # readList :: ReadS [LocaleName] # readPrec :: ReadPrec LocaleName # readListPrec :: ReadPrec [LocaleName] #
Show LocaleName # |
Instance details Defined in Data.Text.ICU.Internal Methods showsPrec :: Int -> LocaleName -> ShowS # show :: LocaleName -> String # showList :: [LocaleName] -> ShowS #
IsString LocaleName # |
Instance details Defined in Data.Text.ICU.Internal Methods fromString :: String -> LocaleName #
NFData LocaleName # |
Instance details Defined in Data.Text.ICU.Internal 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

Instances details

Show ParseError # |
Instance details Defined in Data.Text.ICU.Error.Internal Methods showsPrec :: Int -> ParseError -> ShowS # show :: ParseError -> String # showList :: [ParseError] -> ShowS #
Exception ParseError # |
Instance details Defined in Data.Text.ICU.Error.Internal Methods toException :: ParseError -> SomeException # fromException :: SomeException -> Maybe ParseError # displayException :: ParseError -> String #
NFData ParseError # |
Instance details Defined in Data.Text.ICU.Error.Internal Methods rnf :: ParseError -> () #