Standardized conversion between string types

Version on this page:0.1.2
LTS Haskell 22.29:0.2.0
Stackage Nightly 2024-07-17:0.2.0
Latest on Hackage:0.2.0

See all snapshots string-conv appears in

BSD-3-Clause licensed by Ozgun Ataman
Maintained by [email protected]
This version can be pinned in stack with:string-conv-0.1.2@sha256:1fa79b999fda34b0eb406261cf77475f1919ca5e754adf983182601e6e3de759,1123

Module documentation for 0.1.2

Depends on 3 packages(full list with versions):
Used by 1 package in lts-9.21(full list with versions):


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.



  • Fixed bug where String <-> ByteString conversion would trim characters to 8 bits. Now it goes through conversion to Text first.


  • Fixed bug where decoding text from bytestrings would always decode leniently, even if Strict was used.


  • Initial release