on master help sign in
Make some of the low-level internals visible.

Necessary for people writing e.g. hash functions.

commit4213b9ed9018b9160f06c8b0e473cb2df0b97e01 authorBryan O'Sullivan <bos@serpentine.com> dateTue 1 Feb 2011, 08:38 (16 years ago) parent1182ba1
3 files changed+17−8
Data/Text/Internal.hs+7−2 Data/Text/Lazy/Internal.hs+6−2 text.cabal+4−4
Data/Text/Internal.hs+7−2
@@ -12,8 +12,13 @@
1212-- Stability : experimental
1313-- Portability : GHC
1414--
15−-- Semi-public internals. Most users should not need to use this
16−-- module.
15+-- A module containing private 'Text' internals. This exposes the
16+-- 'Text' representation and low level construction functions.
17+-- Modules which extend the 'Text' system may need to use this module.
18+--
19+-- You should not use this module unless you are determined to monkey
20+-- with the internals, as the functions here do just about nothing to
21+-- preserve data invariants. You have been warned!
1722
1823module Data.Text.Internal
1924 (
Data/Text/Lazy/Internal.hs+6−2
@@ -9,10 +9,14 @@
99-- Stability : experimental
1010-- Portability : GHC
1111--
12−-- A module containing semi-public 'Text' internals. This exposes the
12+-- A module containing private 'Text' internals. This exposes the
1313-- 'Text' representation and low level construction functions.
1414-- Modules which extend the 'Text' system may need to use this module.
15−-- Regular users should not.
15+--
16+-- You should not use this module unless you are determined to monkey
17+-- with the internals, as the functions here do just about nothing to
18+-- preserve data invariants. You have been warned!
19+
1620module Data.Text.Lazy.Internal
1721 (
1822 Text(..)
text.cabal+4−4
@@ -1,5 +1,5 @@
11name: text
2−version: 0.11.0.2
2+version: 0.11.0.3
33homepage: http://bitbucket.org/bos/text
44bug-reports: http://bitbucket.org/bos/text/issues
55synopsis: An efficient packed Unicode text type.
@@ -79,18 +79,20 @@ flag developer
7979library
8080 exposed-modules:
8181 Data.Text
82+ Data.Text.Array
8283 Data.Text.Encoding
8384 Data.Text.Encoding.Error
8485 Data.Text.Foreign
8586 Data.Text.IO
87+ Data.Text.Internal
8688 Data.Text.Lazy
8789 Data.Text.Lazy.Builder
8890 Data.Text.Lazy.Encoding
8991 Data.Text.Lazy.IO
92+ Data.Text.Lazy.Internal
9093 Data.Text.Lazy.Read
9194 Data.Text.Read
9295 other-modules:
93− Data.Text.Array
9496 Data.Text.Encoding.Fusion
9597 Data.Text.Encoding.Fusion.Common
9698 Data.Text.Encoding.Utf16
@@ -102,10 +104,8 @@ library
102104 Data.Text.Fusion.Internal
103105 Data.Text.Fusion.Size
104106 Data.Text.IO.Internal
105− Data.Text.Internal
106107 Data.Text.Lazy.Encoding.Fusion
107108 Data.Text.Lazy.Fusion
108− Data.Text.Lazy.Internal
109109 Data.Text.Lazy.Search
110110 Data.Text.Search
111111 Data.Text.Unsafe