[Haskell-cafe] Usage of rewrite rule specialization in Hackage
wren ng thornton
wren at freegeek.org
Fri May 6 02:21:59 CEST 2011
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
More information about the Haskell-Cafe
mailing list