commercialhaskell / rio

A standard library for Haskell
Other
838 stars 54 forks source link

import qualified RIO.Text as Text #193

Closed karamellpelle closed 5 years ago

karamellpelle commented 5 years ago

The module documentation for RIO.Text.Partial says import qualified RIO.Text.Partial as T', but RIO.Text says import qualified RIO.Text as Text. Your tutorial https://haskell.fpcomplete.com/tutorial/string-types says import qualified Data.Text as T. Shouldn't RIO.Text say T?

PS: Shouldn't also RIO include and export the Data.Text.IO module which has file reading/writing functionality? The RIO.ByteString exposes file reading/writing.

snoyberg commented 5 years ago

It would be using T everywhere, would you be interested in sending a PR to fix the docs?

Exclusion of textual IO operations is intentional. See https://www.snoyman.com/blog/2016/12/beware-of-readfile

karamellpelle commented 5 years ago

Thanks!