Oh yes, this is a bug all right.  I'm looking into it. Thanks for
reporting it

S

| -----Original Message-----
| From: [EMAIL PROTECTED]
[mailto:glasgow-haskell-users-
| [EMAIL PROTECTED] 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
| [EMAIL PROTECTED]
| http://www.haskell.org/mailman/listinfo/glasgow-haskell-users


_______________________________________________
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users

Reply via email to