Copyright | (C) CSIRO 2017-2018 |
---|---|
License | BSD3 |
Maintainer | George Wilson <george.wilson@data61.csiro.au> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | Safe |
Language | Haskell2010 |
A sum type for line endings
Documentation
Newline
is a sum type for line endings
newlineToString :: IsString s => Newline -> s Source #
Convert a Newline
to a String
. Since this uses IsString
,
it works for other data types, like Text
or
ByteString
.