[Haskell-cafe] why does Data.Text.Lazy.IO.readFile return the
internal type Data.Text.Lazy.Internal.Text, when Data.Text.IO.readFile
returns plain IO Data.Text.Text?
bos at serpentine.com
Fri Apr 30 17:12:33 EDT 2010
On Fri, Apr 30, 2010 at 1:37 PM, Thomas Hartman <tphyahoo at gmail.com> wrote:
> why does the lazy version use the internal type, whereas the strict
> version of Text IO just using plain Data.Text type?
That's just ghci playing display games with you, based on the names under
which you imported the modules.
There are two Text types, strict and lazy, so the lazy IO module returns a
lazy Text, while the strict ... well, you get it.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe