Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make readFile return ByteString #22

Closed
chshersh opened this issue Jul 19, 2018 · 1 comment
Closed

Make readFile return ByteString #22

chshersh opened this issue Jul 19, 2018 · 1 comment
Assignees
Labels
new Bring something new into library (add function or type or interface) question Further information is requested refactoring

Comments

@chshersh
Copy link
Contributor

And make it polymorphic.

And think more.

@chshersh chshersh added refactoring new Bring something new into library (add function or type or interface) labels Jul 19, 2018
@chshersh chshersh added the question Further information is requested label Aug 30, 2018
@chshersh
Copy link
Contributor Author

chshersh commented Aug 30, 2018

I think here we can do similar things to Print functions. We can have:

readFileText  :: FilePath -> IO Text
readFileLText :: FilePath -> IO LText
readFileBS    :: FilePath -> IO ByteString
readFileLBS   :: FilePath -> IO LByteString

And remove default readFile?... Or make it return String as in Prelude?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new Bring something new into library (add function or type or interface) question Further information is requested refactoring
Projects
None yet
Development

No branches or pull requests

1 participant