Posible bug while optimizing? (Was: RULES for SPECIALIZ(E)ations)
Simon Peyton-Jones
simonpj at microsoft.com
Thu Oct 23 10:58:12 EDT 2003
Oh yes, this is a bug all right. I'm looking into it. Thanks for
reporting it
S
| -----Original Message-----
| From: glasgow-haskell-users-bounces at haskell.org
[mailto:glasgow-haskell-users-
| bounces at haskell.org] On Behalf Of Juanma Barranquero
| Sent: 22 October 2003 09:58
| To: GHC users
| Subject: Re: Posible bug while optimizing? (Was: RULES for
SPECIALIZ(E)ations)
|
| An even simpler example, with just one module:
|
| -------------------------------------------------------
| module Test where
|
| import Data.List (genericLength)
|
| {-# RULES
| "genericLength/length" genericLength = length
| #-}
| -------------------------------------------------------
|
| D:\...\hask> ghc -O -fglasgow-exts --make Test.hs
| Chasing modules from: Test.hs
| Compiling Test ( Test.hs, ./Test.o )
|
| D:\...\hask> ghc -O -fglasgow-exts --make Test.hs
| Chasing modules from: Test.hs
| Skipping Test ( Test.hs, ./Test.o )
|
| tcLookupGlobal (id): `Data.List.genericLength' is not in scope
| When checking the transformation rule "genericLength/length"
|
| Surely that *must* be a bug, mustn't?
|
|
|
| Juanma
|
|
| _______________________________________________
| Glasgow-haskell-users mailing list
| Glasgow-haskell-users at haskell.org
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
More information about the Glasgow-haskell-users
mailing list