@hackage / to-string-class

Converting string-like types to Strings.

Version Deprecated package0.1.2

About

Metadata

  • Last updated , by HerbertValerioRiedel
  • License BSD-3-Clause
  • Maintained by: Bas van Dijk <v.dijk.bas@gmail.com>

  • Lottery factor: 0

Links

Installation

This package has been deprecated

Readme

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:

http://hackage.haskell.org/package/to-string-instances

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

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

fromToString = fromString . toString