
5 May
2011
5 May
'11
8:21 p.m.
On 5/5/11 10:36 AM, Scott Kilpatrick wrote:
I'm looking for "real" code that uses the kind of GHC rewrite rule that specializes a polymorphic function with another one, as described here<http://www.haskell.org/ghc/docs/latest/html/users_guide/rewrite- rules.html#rule-spec>. Can anyone point me to any popular packages in Hackage that make use of this?
Perhaps not the easiest example to look through, but just check out the base package. In particular, there are a number of functions which get specialized implementations for Int, Int#, Word, etc. -- Live well, ~wren