to-string-class: Converting string-like types to Strings.

[ bsd3, data, deprecated, library ] [ Propose Tags ]

This library provides the class:

class ToString s where toString :: s -> String

Instances for String, Char and ShowS are provided. For other instances see the package:

Also included is a general coercion function between string-like types:

fromToString :: (IsString s2, ToString s1) => s1 -> s2

fromToString = fromString . toString

Versions [faq] 0.1, 0.1.1, 0.1.2
Dependencies base (>=4 && <4.4) [details]
License BSD-3-Clause
Copyright 2009 Bas van Dijk <>
Author Bas van Dijk <>
Maintainer Bas van Dijk <>
Revised Revision 1 made by HerbertValerioRiedel at Mon Feb 18 08:51:13 UTC 2019
Category Data
Source repo head: darcs get
Uploaded by BasVanDijk at Tue Sep 22 20:18:43 UTC 2009
Distributions NixOS:0.1.2
Downloads 1702 total (54 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs uploaded by user
Build status unknown [no reports yet]




Note: This package has metadata revisions in the cabal description newer than included in the tarball. To unpack the package including the revisions, use 'cabal get'.

Maintainer's Corner

For package maintainers and hackage trustees