@hackage to-string-class0.1.2
Converting string-like types to Strings.
Categories
License
BSD-3-Clause
Maintainer
Bas van Dijk <v.dijk.bas@gmail.com>
Links
Versions
Deprecated
Dependencies (1)
Dependents (5)
@hackage/dstring, @hackage/acme-everything, @hackage/to-string-instances, @hackage/HaTeX, @hackage/repr
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