[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?

Daniel Fischer daniel.is.fischer at web.de
Fri Apr 30 18:14:33 EDT 2010


Am Freitag 30 April 2010 23:20:59 schrieb Edward Kmett:
> On Fri, Apr 30, 2010 at 5:09 PM, Daniel Fischer 
<daniel.is.fischer at web.de>wrote:
> > and how can I get from internal type to regular type when using
> >
> > > Data.Text?
> >
> > Use id :: a -> a
> > ;)
> >
> > Not quite, there is still a distinction between
> > Data.Text(.Internal).Text
>
> and Data.Text.Lazy(.Internal).Text.

Yes, I understood it so that he wanted to convert from 
Data.Text.Lazy.Internal.Text to Data.Text.Lazy.Text.


More information about the Haskell-Cafe mailing list