sv-0.1: Encode and decode separated values (CSV, PSV, ...)

Copyright(C) CSIRO 2017-2018
LicenseBSD3
MaintainerGeorge Wilson <george.wilson@data61.csiro.au>
Stabilityexperimental
Portabilitynon-portable
Safe HaskellSafe
LanguageHaskell2010

Text.Newline

Description

A sum type for line endings

Synopsis

Documentation

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.

parseNewline :: Text -> Maybe Newline Source #

Try to parse text into a Newline