[Haskell-cafe] fromString and toString
Atze van der Ploeg
atzeus at gmail.com
Wed Feb 5 08:13:44 UTC 2014
Isn't toString just show?
On Feb 4, 2014 3:20 PM, "Johannes Waldmann" <waldmann at imn.htwk-leipzig.de>
> Ben Foppa <benjamin.foppa <at> gmail.com> writes:
> > But do we have an inverse generic function toString defined anywhere?
> well, we have: class Show a where show :: a -> String
> > likereString :: (IsString a, IsString b) => a -> b
> well you probably don't want to actually convert from a to String
> (= List of Char) then from there to b,
> so it would need to be accompanied by some RULES
> (for specific instances of a, b) for efficiency.
> This still does not answer the concern whether it is
> (semantically) wise to have String as the "base" concept here.
> - J.W.
> Haskell-Cafe mailing list
> Haskell-Cafe at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Haskell-Cafe