Safe Haskell | None |
---|---|
Language | Haskell98 |
Module to be shared between server and client.
This module must be valid for both GHC and Fay.
For GHC this is an alias for Data.Text, for Fay it's an opaque data type represented by JavaScript strings.
Documentation
data Text :: *
A space efficient, packed, unboxed Unicode text type.
IsList Text | |
Eq Text | |
Data Text | This instance preserves data abstraction at the cost of inefficiency. We omit reflection services for the sake of data abstraction. This instance was created by copying the updated behavior of
The original discussion is archived here: could we get a Data instance for Data.Text.Text? The followup discussion that changed the behavior of |
Ord Text | |
Read Text | |
Show Text | |
IsString Text | |
Monoid Text | |
NFData Text | |
Typeable * Text | |
type Item Text = Char |
fromString :: String -> Text Source
Have this in scope with the OverloadedStrings and BindableSyntax extensions and Fay will replace all string literals with Text.