Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- fixCRLF :: ByteString -> ByteString
- readUTF8FileT :: FilePath -> IO Text
- writeUTF8FileT :: FilePath -> Text -> IO ()
- readUTF8File :: FilePath -> IO String
- writeUTF8File :: FilePath -> String -> IO ()
Documentation
fixCRLF :: ByteString -> ByteString Source #
Unfortunately ByteString's readFile does not convert line endings on Windows, so we have to do it ourselves