
We are pleased to announce the second release candidate for GHC 7.0.1: http://new-www.haskell.org/ghc/dist/7.0.1-rc2/ This includes the source tarball, installers for OS X and Windows, and bindists for amd64/Linux, i386/Linux, amd64/FreeBSD and i386/FreeBSD. Amongst the changes since RC 1 are: * -fglasgow-exts now gives a deprecated warning, and no longer enables GADTs or TypeFamilies. * The haskell98 packge is no longer automatically linked, although this often won't make a difference as --make is now enabled by default. Please test as much as possible; bugs are much cheaper if we find them before the release! Thanks Ian, on behalf of the GHC team

I'm not sure this is in rc2 since I'm using the latest ghc-HEAD (7.1.20101029). In ghc < 7 you needed to import symbols like fromInteger, (>>=) and fail when you used them indirectly. For example when using integer literals or do-notation. I noticed that in my ghc-HEAD this isn't needed anymore: {-# OPTIONS_GHC -Wall #-} {-# LANGUAGE NoImplicitPrelude #-} import Control.Monad ( return ) import System.IO ( IO ) import Data.Int -- Only needed for ghc < 7. -- In fact, the following gives a redundancy warning in ghc-7: import Control.Monad ( (>>=), fail ) import Prelude ( fromInteger ) main :: IO () main = do _ <- return (1 :: Int) return () Is this intentional? Regards, Bas

On 10/29/10 20:19, Bas van Dijk wrote:
I'm not sure this is in rc2 since I'm using the latest ghc-HEAD (7.1.20101029).
In ghc< 7 you needed to import symbols like fromInteger, (>>=) and fail when you used them indirectly. For example when using integer literals or do-notation.
I noticed that in my ghc-HEAD this isn't needed anymore:
{-# OPTIONS_GHC -Wall #-} {-# LANGUAGE NoImplicitPrelude #-}
Yes, in HEAD only, NoImplicitPrelude no longer implies RebindableSyntax. http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=201...
import Control.Monad ( return ) import System.IO ( IO ) import Data.Int
-- Only needed for ghc< 7. -- In fact, the following gives a redundancy warning in ghc-7: import Control.Monad ( (>>=), fail ) import Prelude ( fromInteger )
However, a redundancy warning sounds wrong (or at least confusing). An "unused import" warning seems more appropriate to me, although it's a bit of a grey area. If you remove LANGUAGE NoImplicitPrelude from the module, what warning do you get? (maybe test that in HEAD as well as 6.12 or so) -Isaac

On Sat, Oct 30, 2010 at 7:38 AM, Isaac Dupree
On 10/29/10 20:19, Bas van Dijk wrote:
I'm not sure this is in rc2 since I'm using the latest ghc-HEAD (7.1.20101029).
In ghc< 7 you needed to import symbols like fromInteger, (>>=) and fail when you used them indirectly. For example when using integer literals or do-notation.
I noticed that in my ghc-HEAD this isn't needed anymore:
{-# OPTIONS_GHC -Wall #-} {-# LANGUAGE NoImplicitPrelude #-}
Yes, in HEAD only, NoImplicitPrelude no longer implies RebindableSyntax.
Thanks, for the explanation.
http://darcs.haskell.org/cgi-bin/darcsweb.cgi?r=ghc;a=darcs_commitdiff;h=201...
import Control.Monad ( return ) import System.IO ( IO ) import Data.Int
-- Only needed for ghc< 7. -- In fact, the following gives a redundancy warning in ghc-7: import Control.Monad ( (>>=), fail ) import Prelude ( fromInteger )
However, a redundancy warning sounds wrong (or at least confusing). An "unused import" warning seems more appropriate to me, although it's a bit of a grey area. If you remove LANGUAGE NoImplicitPrelude from the module, what warning do you get? (maybe test that in HEAD as well as 6.12 or so)
Without NoImplicitPrelude: $ /usr/bin/ghc-6.12.3 --make GHC7.hs -fforce-recomp [1 of 1] Compiling Main ( GHC7.hs, GHC7.o ) GHC7.hs:9:0: Warning: The import of `Control.Monad' is redundant except perhaps to import instances from `Control.Monad' To import instances alone, use: import Control.Monad() GHC7.hs:10:0: Warning: The import of `Prelude' is redundant except perhaps to import instances from `Prelude' To import instances alone, use: import Prelude() Which is to be expected because the Prelude is imported implicitly. I get the same warnings in ghc-HEAD with and without NoImplicitPrelude: $ ~/ghc-HEAD/bin/ghc-7.1.20101029 --make GHC7.hs -Wall -fforce-recomp [1 of 1] Compiling Main ( GHC7.hs, GHC7.o ) GHC7.hs:9:1: Warning: The import of `Control.Monad' is redundant except perhaps to import instances from `Control.Monad' To import instances alone, use: import Control.Monad() GHC7.hs:10:1: Warning: The import of `Prelude' is redundant except perhaps to import instances from `Prelude' To import instances alone, use: import Prelude() Thanks, Bas

On 10/30/10 04:43, Bas van Dijk wrote:
Which is to be expected because the Prelude is imported implicitly.
No it's not, because you import Prelude explicitly ("import Prelude ( fromInteger )"). In any Haskell, Prelude is only implicitly imported if there are no explicit imports of Prelude in that module. http://www.haskell.org/onlinereport/modules.html#sect5.6.1 The only thing that could be called "redundant" is that when you write a number, it actually calls the thing defined as GHC.Num.fromInteger -- whether or not it has been imported --, which is incidentally the same thing as you import in that line "import Prelude ( fromInteger )"; And similarly for the other built-in syntax. -Isaac

Am 29.10.2010 20:38, schrieb Ian Lynagh:
We are pleased to announce the second release candidate for GHC 7.0.1:
Works fine for me. I need a higher -fcontext-stack of 31 (instead of 20) and the compile time without optimization increased from 9 to 15 minutes (which isn't bad). Cheers C.
This includes the source tarball, installers for OS X and Windows, and bindists for amd64/Linux, i386/Linux, amd64/FreeBSD and i386/FreeBSD.
Amongst the changes since RC 1 are:
* -fglasgow-exts now gives a deprecated warning, and no longer enables GADTs or TypeFamilies.
* The haskell98 packge is no longer automatically linked, although this often won't make a difference as --make is now enabled by default.
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks Ian, on behalf of the GHC team

On 30 October 2010 04:38, Ian Lynagh
We are pleased to announce the second release candidate for GHC 7.0.1:
:
Please test as much as possible; bugs are much cheaper if we find them before the release!
Thanks I did a test build for Fedora: http://koji.fedoraproject.org/koji/taskinfo?taskID=2586133 if people want to try and test it that would be great. Jens
participants (5)
-
Bas van Dijk
-
Christian Maeder
-
Ian Lynagh
-
Isaac Dupree
-
Jens Petersen