
That's a really interesting idea, thanks for linking it.
On Tue, Feb 20, 2018 at 9:43 PM, Joachim Breitner
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@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