[ ghc-Bugs-904512 ] hiding does not follow haskell report
Bugs item #904512, was opened at 2004-02-25 20:15 Message generated for change (Comment added) made by simonpj You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=904512&group_id=8032 Category: Compiler Group: 6.0.1 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: hiding does not follow haskell report Initial Comment: Email: [EMAIL PROTECTED] As understand hiding from the Haskell report, it should hide only the unqualified name and not the qualified name, e.g., hide head but not Prelude.head (or List.head). This is not the case with ghc 6.0.1: [EMAIL PROTECTED]:/bug-2111> cat Main.hs module Main where import Prelude hiding (head) main = do print (Prelude.head [0..]) head head = print "head" [EMAIL PROTECTED]:/bug-2112> ghc --version The Glorious Glasgow Haskell Compilation System, version 6.0.1 [EMAIL PROTECTED]:/bug-2113> ghc -fglasgow-exts -o Main --make Main Chasing modules from: Main Compiling Main ( Main.hs, ./Main.o ) Main.hs:5: Variable not in scope: `Prelude.head' [EMAIL PROTECTED]:/bug-2114> ghc -o Main --make Main Chasing modules from: Main Compiling Main ( Main.hs, ./Main.o ) Main.hs:5: Variable not in scope: `Prelude.head' [EMAIL PROTECTED]:/bug-2115> runhugs Main 0 "head" as expected. -- >Comment By: Simon Peyton Jones (simonpj) Date: 2004-02-26 12:38 Message: Logged In: YES user_id=50165 Quite right! Thus bug has been there for ages, but no one (including us) noticed. I'm going to fix the HEAD. It turns out to be more awkward to fix the 6.2 branch, so I'll let it lie. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=904512&group_id=8032 ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
[ ghc-Bugs-904512 ] hiding does not follow haskell report
Bugs item #904512, was opened at 2004-02-25 12:15 Message generated for change (Comment added) made by sigbjorn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=904512&group_id=8032 Category: Compiler Group: 6.0.1 Status: Closed Resolution: Fixed Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: hiding does not follow haskell report Initial Comment: Email: [EMAIL PROTECTED] As understand hiding from the Haskell report, it should hide only the unqualified name and not the qualified name, e.g., hide head but not Prelude.head (or List.head). This is not the case with ghc 6.0.1: [EMAIL PROTECTED]:/bug-2111> cat Main.hs module Main where import Prelude hiding (head) main = do print (Prelude.head [0..]) head head = print "head" [EMAIL PROTECTED]:/bug-2112> ghc --version The Glorious Glasgow Haskell Compilation System, version 6.0.1 [EMAIL PROTECTED]:/bug-2113> ghc -fglasgow-exts -o Main --make Main Chasing modules from: Main Compiling Main ( Main.hs, ./Main.o ) Main.hs:5: Variable not in scope: `Prelude.head' [EMAIL PROTECTED]:/bug-2114> ghc -o Main --make Main Chasing modules from: Main Compiling Main ( Main.hs, ./Main.o ) Main.hs:5: Variable not in scope: `Prelude.head' [EMAIL PROTECTED]:/bug-2115> runhugs Main 0 "head" as expected. -- >Comment By: Sigbjorn Finne (sigbjorn) Date: 2004-02-26 07:20 Message: Logged In: YES user_id=232905 This is not a bug, but expected behaviour. See the examples table in Section 5.3.4 of the Haskell 98 report. -- Comment By: Simon Peyton Jones (simonpj) Date: 2004-02-26 04:38 Message: Logged In: YES user_id=50165 Quite right! Thus bug has been there for ages, but no one (including us) noticed. I'm going to fix the HEAD. It turns out to be more awkward to fix the 6.2 branch, so I'll let it lie. -- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108032&aid=904512&group_id=8032 ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
Re: [Vhs-ufpe] problems building GHC from source in Windows
Starting with a completely fresh tree indeed solved the problem. Finally I was able to compile GHC from source, but I'd like to report that "nofib" and "hood" are actually breaking the fptools build. nofib error is: /bin/sh -c ././exp3_8_p +RTS -SC:/TEMP/stats392 -RTS +RTS -H10m -K10m -RTS 8 < /dev/null 1> C:/TEMP/runtest392.1 2> C:/TEMP/runtest392.2 3> C:/TEMP/runtest392. 3 ././exp3_8_p +RTS -H10m -K10m -RTS 8 < /dev/null expected stdout not matched by reality *** exp3_8.stdout Tue Nov 26 11:46:26 1996 --- C:/TEMP/runtest392.1Thu Feb 26 18:42:44 2004 *** *** 1 ! 6561 --- 1 ! 6561 make[4]: *** [runtests] Error 1 make[3]: *** [all] Error 1 make[2]: *** [all] Error 1 make[1]: *** [all] Error 1 make[1]: Leaving directory `/cygdrive/c/haskell/cvs2/fptools/nofib' make: *** [build] Error 1 hood error is: make[1]: Leaving directory `/cygdrive/c/haskell/cvs2/fptools/hdirect' make[1]: Entering directory `/cygdrive/c/haskell/cvs2/fptools/hood' make[1]: *** No rule to make target `boot'. Stop. make[1]: Leaving directory `/cygdrive/c/haskell/cvs2/fptools/hood' make: *** [build] Error 1 Removing them from my local machine made it possible to proceed. Cheers, -- Andre - Original Message - From: "Simon Peyton-Jones" <[EMAIL PROTECTED]> To: "Andre Santos" <[EMAIL PROTECTED]>; "Andre W B Furtado" <[EMAIL PROTECTED]> Cc: "GHC bugs" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Monday, February 23, 2004 8:23 AM Subject: RE: [Vhs-ufpe] problems building GHC from source in Windows [redirecting to ghc-bugs] I have seen this before. Things are going wrong when you use the newly built compiler to compile the run-time system. (This is the first RTS file it compiles, right?) Trouble is, I can't remember what was wrong. I hope you configured with --with-gcc=c:/mingw/bin/gcc as specified?Is this a completely clean build, starting with autoreconf, in a tree with no old files lying around in it? (If not, start a completely fresh tree -- I do have a vague memory that make clean didn't make clean enough...) Simon | -Original Message- | From: [EMAIL PROTECTED] [mailto:glasgow-haskell-users- | [EMAIL PROTECTED] On Behalf Of Andre Santos | Sent: 22 February 2004 07:10 | To: Andre W B Furtado | Cc: glasgow-haskell-users; [EMAIL PROTECTED] | Subject: Re: [Vhs-ufpe] problems building GHC from source in Windows | | Hi Andre, | | are you sure you have a ../../ghc/compiler/ghc-inplace file/compiler? | You need to have compiled the "ghc/compiler" directory to have that. | | If you are only building a different rts you should have used | "make HC=your-ghc-compiler" otherwise it will try to use | the inplace one (which is the usual/standard behaviour). | | Andre. | | Andre W B Furtado wrote: | | > I was trying to build GHC in my Windows XP, using Cygwin, following the | > steps in the building guide. I'm stuck in the following error when executing | > "make" in fptools: | > | > creating libgmp.la | > (cd .libs && rm -f libgmp.la && ln -s ../libgmp.la libgmp.la) | > make[6]: Leaving directory `/cygdrive/c/haskell/cvs/fptools/ghc/ghc/rts/gmp' | > make[5]: Leaving directory `/cygdrive/c/haskell/cvs/fptools/ghc/ghc/rts/gmp' | > ../../ghc/compiler/ghc-inplace -H16m -O -O2 -static-c Apply.hc -o | > Apply.o | > make[3]: *** [Apply.o] Error 1 | > make[2]: *** [all] Error 1 | > make[2]: Leaving directory `/cygdrive/c/haskell/cvs/fptools/ghc/ghc' | > make[1]: *** [build] Error 1 | > make[1]: Leaving directory `/cygdrive/c/haskell/cvs/fptools/ghc' | > make: *** [build] Error 1 | > | > Any suggestions? | > Thanks, | > -- Andre | > | > ___ | > Vhs-ufpe mailing list | > [EMAIL PROTECTED] | > http://noronha.cin.ufpe.br/mailman/listinfo/vhs-ufpe | | ___ | Glasgow-haskell-users mailing list | [EMAIL PROTECTED] | http://www.haskell.org/mailman/listinfo/glasgow-haskell-users ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
locating package.conf II
Hi, In July 2003, a discussion in this list named "locating package.conf" (http://www.haskell.org/pipermail/glasgow-haskell-users/2003-July/005511.htm l) concluded that "make install" on Windows is not supported. Has this evolved since then? Thanks, -- Andre ___ Glasgow-haskell-bugs mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs