Data.Text.Lazy.Internal.Text = Data.Text.Lazy.Text
Data.Text.Internal.Text = Data.Text.Text

You can use fromChunks/toChunks from Data.Text.Lazy to break it up into strict Text fragments.

The lazy version returns a Lazy Text value, which is isomorphic to [Data.Text.Text]. The strict version just returns a single strict Text value.

On Fri, Apr 30, 2010 at 4:37 PM, Thomas Hartman <tphyahoo@gmail.com> wrote:
*Main> :t Data.Text.IO.readFile
Data.Text.IO.readFile :: FilePath -> IO T.Text

but

*Main> :t Data.Text.Lazy.IO.readFile
Data.Text.Lazy.IO.readFile
 :: FilePath -> IO text-0.7.1.0:Data.Text.Lazy.Internal.Text

why does the lazy version use the internal type, whereas the strict
version of Text IO just using plain Data.Text type?
and how can I get from internal type to regular type when using Data.Text?

also the internal type doesn't appear to be reflected in the haddock:
 http://hackage.haskell.org/packages/archive/text/0.7.1.0/doc/html/Data-Text-Lazy-IO.html

ghc-pkg list | grep -i text
   text-0.7.1.0

thanks for any help!
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe