[Hs-Generics] Proposal #2875: Correct SYB's representation of Char

José Pedro Magalhães jpm at cs.uu.nl
Wed Dec 17 08:37:12 EST 2008


On Thu, Dec 11, 2008 at 16:16, Neil Mitchell <ndmitchell at gmail.com> wrote:

> Hi,
>
> I agree with the idea. However, remember that this won't be fully
> backwards compatible as anyone who performs a pattern match will now
> get a crash. Given that, I think I'd be more in favour of renaming
> StringRep to CharRep in one single step, otherwise you are going to
> allow the old code to compile fine and crash at runtime. Having
> mkStringRep be deprecated is a good idea though.


It would still warn about the use of deprecated StringRep (and also a
non-exaustive pattern match with -Wall). But I won't oppose to changing it
in one go. But then mkStringRep would disappear?


Thanks,
Pedro
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.haskell.org/pipermail/generics/attachments/20081217/3f887717/attachment.htm


More information about the Generics mailing list