[Haskell-cafe] Pointer equality for nullary constructors

Gregory Collins greg at gregorycollins.net
Thu Feb 22 20:32:07 UTC 2018


That's a really interesting idea, thanks for linking it.

On Tue, Feb 20, 2018 at 9:43 PM, Joachim Breitner <mail at joachim-breitner.de>
wrote:

> Hi,
>
> Am Dienstag, den 20.02.2018, 17:56 -0500 schrieb Gregory Collins:
> > You mean like this? https://github.com/gregorycollins/hashtables/
> blob/master/src/Data/HashTable/Internal/UnsafeTricks.hs#L72
> >
> > My experience is that this works, except when doing coverage, where the
> compiler adds instrumentation code that breaks the technique. I #ifdef'd my
> way around the problem, swapping out a slower impl when I was doing code
> coverage.
>
> it seems that in this case,
> https://ghc.haskell.org/trac/ghc/ticket/14826
> would very much apply, wouldn’t it?
>
> Cheers,
> Joachim
>
> --
> Joachim Breitner
>   mail at joachim-breitner.de
>   http://www.joachim-breitner.de/
>
> _______________________________________________
> Haskell-Cafe mailing list
> To (un)subscribe, modify options or view archives go to:
> http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe
> Only members subscribed via the mailman list are allowed to post.
>



-- 
Gregory Collins <greg at gregorycollins.net>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20180222/73977f90/attachment.html>


More information about the Haskell-Cafe mailing list