Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Make some of the low-level internals visible.

Necessary for people writing e.g. hash functions.
  • Loading branch information...
commit 4213b9ed9018b9160f06c8b0e473cb2df0b97e01 1 parent 1182ba1
@bos authored
View
9 Data/Text/Internal.hs
@@ -12,8 +12,13 @@
-- 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
(
View
8 Data/Text/Lazy/Internal.hs
@@ -9,10 +9,14 @@
-- 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(..)
View
8 text.cabal
@@ -1,5 +1,5 @@
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.
@@ -79,18 +79,20 @@ flag developer
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
@@ -102,10 +104,8 @@ library
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

0 comments on commit 4213b9e

Please sign in to comment.
Something went wrong with that request. Please try again.