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
Description
Types for use when manipulating Unicode text, using the bindings to the International Components for Unicode (ICU) libraries.
Synopsis
- data LocaleName
- 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
Eq LocaleName Source # | |
Defined in Data.Text.ICU.Internal | |
Ord LocaleName Source # | |
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 Source # | |
Defined in Data.Text.ICU.Internal Methods readsPrec :: Int -> ReadS LocaleName readList :: ReadS [LocaleName] readPrec :: ReadPrec LocaleName readListPrec :: ReadPrec [LocaleName] | |
Show LocaleName Source # | |
Defined in Data.Text.ICU.Internal Methods showsPrec :: Int -> LocaleName -> ShowS show :: LocaleName -> String showList :: [LocaleName] -> ShowS | |
IsString LocaleName Source # | |
Defined in Data.Text.ICU.Internal Methods fromString :: String -> LocaleName | |
NFData LocaleName Source # | |
Defined in Data.Text.ICU.Internal Methods rnf :: LocaleName -> () |
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
Show ParseError Source # | |
Defined in Data.Text.ICU.Error.Internal Methods showsPrec :: Int -> ParseError -> ShowS show :: ParseError -> String showList :: [ParseError] -> ShowS | |
NFData ParseError Source # | |
Defined in Data.Text.ICU.Error.Internal Methods rnf :: ParseError -> () | |
Exception ParseError Source # | |
Defined in Data.Text.ICU.Error.Internal Methods toException :: ParseError -> SomeException fromException :: SomeException -> Maybe ParseError displayException :: ParseError -> String |