text-icu-0.8.0.5: 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 Source #

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

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

Instance details

Defined in Data.Text.ICU.Internal

Methods

compare :: LocaleName -> LocaleName -> Ordering Source #

(<) :: LocaleName -> LocaleName -> Bool Source #

(<=) :: LocaleName -> LocaleName -> Bool Source #

(>) :: LocaleName -> LocaleName -> Bool Source #

(>=) :: LocaleName -> LocaleName -> Bool Source #

max :: LocaleName -> LocaleName -> LocaleName Source #

min :: LocaleName -> LocaleName -> LocaleName Source #

data ParseError Source #

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

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