Bryan O'Sullivan avatar Bryan O'Sullivan committed 36b2a3a

Make some of the low-level internals visible.

Necessary for people writing e.g. hash functions.

Comments (0)

Files changed (3)

Data/Text/Internal.hs

 -- Stability   : experimental
 -- Portability : GHC
 --
--- Semi-public internals.  Most users should not need to use this
--- module.
+-- A module containing private 'Text' internals. This exposes the
+-- 'Text' representation and low level construction functions.
+-- Modules which extend the 'Text' system may need to use this module.
+--
+-- You should not use this module unless you are determined to monkey
+-- with the internals, as the functions here do just about nothing to
+-- preserve data invariants.  You have been warned!
 
 module Data.Text.Internal
     (

Data/Text/Lazy/Internal.hs

 -- Stability   : experimental
 -- Portability : GHC
 -- 
--- A module containing semi-public 'Text' internals. This exposes the
+-- A module containing private 'Text' internals. This exposes the
 -- 'Text' representation and low level construction functions.
 -- Modules which extend the 'Text' system may need to use this module.
--- Regular users should not.
+--
+-- You should not use this module unless you are determined to monkey
+-- with the internals, as the functions here do just about nothing to
+-- preserve data invariants.  You have been warned!
+
 module Data.Text.Lazy.Internal
     (
       Text(..)
 name:           text
-version:        0.11.0.2
+version:        0.11.0.3
 homepage:       http://bitbucket.org/bos/text
 bug-reports:    http://bitbucket.org/bos/text/issues
 synopsis:       An efficient packed Unicode text type.
 library
   exposed-modules:
     Data.Text
+    Data.Text.Array
     Data.Text.Encoding
     Data.Text.Encoding.Error
     Data.Text.Foreign
     Data.Text.IO
+    Data.Text.Internal
     Data.Text.Lazy
     Data.Text.Lazy.Builder
     Data.Text.Lazy.Encoding
     Data.Text.Lazy.IO
+    Data.Text.Lazy.Internal
     Data.Text.Lazy.Read
     Data.Text.Read
   other-modules:
-    Data.Text.Array
     Data.Text.Encoding.Fusion
     Data.Text.Encoding.Fusion.Common
     Data.Text.Encoding.Utf16
     Data.Text.Fusion.Internal
     Data.Text.Fusion.Size
     Data.Text.IO.Internal
-    Data.Text.Internal
     Data.Text.Lazy.Encoding.Fusion
     Data.Text.Lazy.Fusion
-    Data.Text.Lazy.Internal
     Data.Text.Lazy.Search
     Data.Text.Search
     Data.Text.Unsafe
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.