string-conv: Standardized conversion between string types

[ bsd3, data, library, string, text ] [ Propose Tags ] [ Report a vulnerability ]

Avoids the need to remember many different functions for converting string types. Just use one universal function toS for all monomorphic string conversions.


[Skip to Readme]

Modules

[Index] [Quick Jump]

Flags

Manual Flags

NameDescriptionDefault
lib-werror

Turn on -Wall and -Werror. Should always be enabled in development.

Disabled

Use -f <flag> to enable a flag, or -f -<flag> to disable that flag. More info

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.2, 0.2.0
Change log changelog.md
Dependencies base (>=4.4 && <5), bytestring, text [details]
License BSD-3-Clause
Copyright Soostone Inc, 2012-2015
Author Ozgun Ataman
Maintainer ozgun.ataman@soostone.com
Category Data, String, Text
Home page https://github.com/Soostone/string-conv
Bug tracker https://github.com/Soostone/string-conv/issues
Source repo head: git clone https://github.com/Soostone/string-conv
Uploaded by MichaelXavier at 2022-03-04T00:48:53Z
Distributions LTSHaskell:0.2.0, NixOS:0.2.0, Stackage:0.2.0
Reverse Dependencies 27 direct, 209 indirect [details]
Downloads 20804 total (147 in the last 30 days)
Rating 1.75 (votes: 2) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2022-03-04 [all 1 reports]

Readme for string-conv-0.2.0

[back to package description]

string-conv

A type class to standardize string conversions. With this type class you only need to remember one function for converting between any two string variants. This package includes support for String, ByteString, and Text as well as the Lazy and Strict variants where necessary.

StringConv's toS function is most useful when you have a fully defined string conversion with a fixed (non-polymorphic) input and output type. Of course you can still use it when you don't have a fixed type. In that case you might need to specify a type class constraint such as StringConv s String.