<p dir="ltr">That's exactly what I want, thank you!</p>
<div class="gmail_quote">On Feb 20, 2014 2:15 AM, "Patrick Pelletier" <<a href="mailto:code@funwithsoftware.org">code@funwithsoftware.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 2/4/14, 5:55 AM, Ben Foppa wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
The reason this came up is that I'm getting pretty sick of type-juggling<br>
different string types from different libraries (String, Text, various<br>
ByteStrings), especially since I have to tweak all the functions I use<br>
if a type changes; discovering fromString was fantastic, but without<br>
toString, I can't define something like<br>
<br>
reString :: (IsString a, IsString b) => a -> b<br>
<br>
which is great to have if your putStrLn only accepts one kind of string,<br>
and you have several distinct ones floating around.<br>
</blockquote>
<br>
Although it doesn't seem to be used much, I noticed that there's this package on Hackage:<br>
<br>
<a href="http://hackage.haskell.org/package/stringable-0.1.2/docs/Data-Stringable.html" target="_blank">http://hackage.haskell.org/<u></u>package/stringable-0.1.2/docs/<u></u>Data-Stringable.html</a><br>
<br>
which seems like it's addressing the same problem you're trying to solve.<br>
<br>
--Patrick<br>
<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>