On 19 October 2011 22:09, Roman Leshchinskiy <r...@cse.unsw.edu.au> wrote:
>
> So it seems that (1) people have very different requirements and (2) the
> Show instance only really matters for debugging in ghci. Here is a
> thought. What if ghci allowed Show instances to be overridden dynamically?
> So you could put your preferred Show instance for Vector Word8 in you
> .ghci file and ghci would use that when displaying stuff (but not when
> actually evaluating things). Would that solve most of the problems without
> messing with vector's Show instances?

Would this hypothetical ghci feature also work for cases where you
have a ByteString as part of another type that derives Show and Read?

I also wonder whether it would suffice to have a ByteString -> String
function available rather than requiring Show per-se for the case of a
ByteString on its lonesome.

-- 
Ivan Lazar Miljenovic
ivan.miljeno...@gmail.com
IvanMiljenovic.wordpress.com

_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to