Re: [GHC] #4058: improve error message: Module `System.IO' does not export `LineBuffering'

2010-05-10 Thread GHC
#4058: improve error message: Module `System.IO' does not export `LineBuffering'
-+--
Reporter:  simonmar  |Owner: 
Type:  feature request   |   Status:  new
Priority:  normal|Milestone:  6.14.1 
   Component:  Compiler  |  Version:  6.12.2 
Keywords:|   Difficulty:  Easy (less than 1 hour)
  Os:  Unknown/Multiple  | Testcase: 
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown   
-+--
Changes (by merehap):

 * cc: mere...@… (added)


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4003: tcIfaceGlobal panic building HEAD with 6.12.2

2010-05-10 Thread GHC
#4003: tcIfaceGlobal panic building HEAD with 6.12.2
-+--
Reporter:  simonmar  |Owner:
Type:  bug   |   Status:  new   
Priority:  highest   |Milestone:  6.12.3
   Component:  Compiler  |  Version:  6.12.2
Keywords:|   Difficulty:
  Os:  Unknown/Multiple  | Testcase:
Architecture:  Unknown/Multiple  |  Failure:  Compile-time crash
-+--
Changes (by PHO):

 * cc: p...@… (added)


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #3563: A couple of additions to Data.Bits

2010-05-10 Thread GHC
#3563: A couple of additions to Data.Bits
-+--
Reporter:  porges|Owner:  
Type:  proposal  |   Status:  new 
Priority:  normal|Milestone:  Not GHC 
   Component:  libraries/base|  Version:  6.11
Keywords:|   Difficulty:  Unknown 
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown
-+--
Changes (by merehap):

 * cc: mere...@… (added)


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4019: deriving Ord can produce incorrect and inefficient instances

2010-05-10 Thread GHC
#4019: deriving Ord can produce incorrect and inefficient instances
-+--
Reporter:  rl|Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.14.1 
   Component:  Compiler  |  Version:  6.13   
Keywords:|   Difficulty: 
  Os:  Unknown/Multiple  | Testcase: 
Architecture:  Unknown/Multiple  |  Failure:  Incorrect result at runtime
-+--

Comment(by gracjan):

 It is OK, Simon! It was good programming exercise and learning from the
 best:)

 I tried to get my head around #2269 some time ago, but without useful
 result. I'll look into other issues soon!

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard

2010-05-10 Thread GHC
#4034: GHC 6.12.2 fails to build on PowerPC / MacOS X Leopard
-+--
Reporter:  PHO   |Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.12.3 
   Component:  Compiler  |  Version:  6.12.2 
Keywords:|   Difficulty: 
  Os:  MacOS X   | Testcase: 
Architecture:  powerpc   |  Failure:  Building GHC failed
-+--

Comment(by PHO):

 Thank you for your suggestion.
 In fact, I tried +RTS -DS before posting this report but that didn't make
 any differences. (-DS needs -debug rts and it behaves just like the normal
 -debug rts; the SEGV.)

 Btw, I found the problem didn't occur at all on the current darcs HEAD.
 I'll try to find the testsuite that fails when I stumble on it again.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #3594: ppc stage1 panic for --enable-shared

2010-05-10 Thread GHC
#3594: ppc stage1 panic for --enable-shared
-+--
Reporter:  juhpetersen   |Owner: 
Type:  bug   |   Status:  patch  
Priority:  high  |Milestone:  6.14.1 
   Component:  Compiler  |  Version:  6.13   
Keywords:|   Difficulty:  Unknown
  Os:  Unknown/Multiple  | Testcase: 
Architecture:  powerpc   |  Failure:  Building GHC failed
-+--
Changes (by PHO):

  * failure:  None/Unknown => Building GHC failed


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4059: possible error in foreign wrapper reentering Haskell

2010-05-10 Thread GHC
#4059: possible error in foreign wrapper reentering Haskell
--+-
  Reporter:  aruiz|  Owner:
  Type:  bug  | Status:  closed
  Priority:  normal   |  Milestone:
 Component:  Compiler (FFI)   |Version:  6.12.2
Resolution:  duplicate|   Keywords:
Difficulty:   | Os:  Linux 
  Testcase:   |   Architecture:  x86   
   Failure:  Incorrect result at runtime  |  
--+-
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 Thanks for the detailed report.  This is another instance of #4038, and as
 its a serious regression we'll be putting out another release shortly.
 Sorry for the inconvenience.

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #4059: possible error in foreign wrapper reentering Haskell

2010-05-10 Thread GHC
#4059: possible error in foreign wrapper reentering Haskell
---+
Reporter:  aruiz   |   Owner: 
Type:  bug |  Status:  new
Priority:  normal  |   Component:  Compiler (FFI) 
 Version:  6.12.2  |Keywords: 
  Os:  Linux   |Testcase: 
Architecture:  x86 | Failure:  Incorrect result at runtime
---+
 The following simple code works as expected in 6.12.1, 6.10, and all
 previous ghc versions:

 fun.c:
 {{{
 double deriv(double f(double), double x, double h)
 {
 return (f(x+h)-f(x))/h;
 }

 }}}



 pru.hs:
 {{{
 {-# LANGUAGE ForeignFunctionInterface #-}

 import Foreign

 d f x = unsafePerformIO $ do
 g <- mkfun f
 r <- deriv g x 0.01
 return r

 main = do
 print $ d sin 0
 print $ d (\x-> x * d (\y-> x+y) 1) 1


 foreign import ccall safe "deriv" deriv :: FunPtr (Double->Double) ->
 Double -> Double -> IO Double

 foreign import ccall safe "wrapper" mkfun:: (Double -> Double) -> IO(
 FunPtr (Double -> Double))

 }}}

 $ ghc -V

 The Glorious Glasgow Haskell Compilation System, version 6.12.1

 $ ghc --make pru.hs fun.c -fforce-recomp

 [1 of 1] Compiling Main ( pru.hs, pru.o )

 Linking pru ...

 $ ./pru

 0.8415

 1.0004464



 But it gives a wrong result in ghc-6.12.2:

 $ ghc -V

 The Glorious Glasgow Haskell Compilation System, version 6.12.2

 $ ghc --make pru.hs fun.c -fforce-recomp

 [1 of 1] Compiling Main ( pru.hs, pru.o )

 Linking pru ...

 $ ./pru

 0.8415

 0.0

 I have discovered this problem when a similar test in my hmatrix library
 failed in 6.12.2. As shown above, it seems that the wrapper only fails on
 C functions which call back to Haskell.

 Linux 2.6.28-17-generic #58-Ubuntu SMP

 ghc-6.12.2-i386-unknown-linux-n.tar.bz2

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4019: deriving Ord can produce incorrect and inefficient instances

2010-05-10 Thread GHC
#4019: deriving Ord can produce incorrect and inefficient instances
-+--
Reporter:  rl|Owner: 
Type:  bug   |   Status:  new
Priority:  normal|Milestone:  6.14.1 
   Component:  Compiler  |  Version:  6.13   
Keywords:|   Difficulty: 
  Os:  Unknown/Multiple  | Testcase: 
Architecture:  Unknown/Multiple  |  Failure:  Incorrect result at runtime
-+--

Comment(by simonpj):

 Thank you very much for producing a patch.  By a rare coincidence I spent
 some time on Friday night doing the job myself!  Moreover, I completely
 re-engineered the general scheme for `Ord` comparisons, as you'll see when
 you look at my patch, which should give a useful performance boost.

 So, with apologies to you, I'll incorporate my patch, but with many thanks
 for your work.  Please don't be discouraged. This doesn't happen often.
 There are quite a few tickets of a similar nature that we'd like help
 with, such as
 * #3676: realToFrac conversions
 * #3744: comparisons against minBound and maxBound are not optimised
 away
 * #3065: quot is sub-optimal
 * #2269: Word type to Double or Float conversions
 * #2271: floor, ceiling, round :: Double -> Int are awesomely slow
 * #1434: slow conversion Double to Int

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4053: Incorrect install-name for dynamic Darwin rts.

2010-05-10 Thread GHC
#4053: Incorrect install-name for dynamic Darwin rts.
-+--
Reporter:  PHO   |Owner: 
Type:  bug   |   Status:  patch  
Priority:  high  |Milestone:  6.14.1 
   Component:  Build System  |  Version:  6.13   
Keywords:|   Difficulty: 
  Os:  MacOS X   | Testcase: 
Architecture:  Unknown/Multiple  |  Failure:  Building GHC failed
-+--
Changes (by simonmar):

  * priority:  normal => high
  * status:  new => patch
  * milestone:  => 6.14.1


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #3594: ppc stage1 panic for --enable-shared

2010-05-10 Thread GHC
#3594: ppc stage1 panic for --enable-shared
-+--
Reporter:  juhpetersen   |Owner:  
Type:  bug   |   Status:  patch   
Priority:  high  |Milestone:  6.14.1  
   Component:  Compiler  |  Version:  6.13
Keywords:|   Difficulty:  Unknown 
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  powerpc   |  Failure:  None/Unknown
-+--
Changes (by simonmar):

  * priority:  normal => high
  * status:  new => patch
  * milestone:  _|_ => 6.14.1


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4051: ghci :m command doesn't work with module names containing '

2010-05-10 Thread GHC
#4051: ghci :m command doesn't work with module names containing '
-+--
Reporter:  nomeata   |Owner:  simonmar
Type:  bug   |   Status:  new 
Priority:  normal|Milestone:  6.12.3  
   Component:  Compiler  |  Version:  6.12.1  
Keywords:|   Difficulty:  
  Os:  Unknown/Multiple  | Testcase:  
Architecture:  Unknown/Multiple  |  Failure:  Other   
-+--
Changes (by simonmar):

  * owner:  => simonmar
  * milestone:  => 6.12.3


-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


[GHC] #4058: improve error message: Module `System.IO' does not export `LineBuffering'

2010-05-10 Thread GHC
#4058: improve error message: Module `System.IO' does not export `LineBuffering'
-+--
Reporter:  simonmar  |Owner: 
Type:  feature request   |   Status:  new
Priority:  normal|Milestone:  6.14.1 
   Component:  Compiler  |  Version:  6.12.2 
Keywords:|   Difficulty:  Easy (less than 1 hour)
  Os:  Unknown/Multiple  | Testcase: 
Architecture:  Unknown/Multiple  |  Failure:  None/Unknown   
-+--
 `LineBuffering` is a constructor, and `System.IO` definitely does export
 it.  A more helpful error message might be

 {{{
 `LineBuffering' is a constructor in the data type `BufferMode`,
   to import it use
 import System.IO (BufferMode(LineBuffering))
   or
 import System.IO (BufferMode(..))
 }}}

 (adapted from a suggestion by John Launchbury)

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4055: Incorrect parsing of declarations

2010-05-10 Thread GHC
#4055: Incorrect parsing of declarations
+---
  Reporter:  diatchki   |  Owner:  
  Type:  bug| Status:  closed  
  Priority:  normal |  Milestone:  
 Component:  Compiler (Parser)  |Version:  6.12.2  
Resolution:  duplicate  |   Keywords:  
Difficulty: | Os:  Unknown/Multiple
  Testcase: |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown   |  
+---
Changes (by simonpj):

  * status:  new => closed
  * resolution:  => duplicate


Comment:

 Yes, this is a dup of #4042, which I fixed last week.  It's because the
 naked `(g x)` is taken as a splice.  Now fixed

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs


Re: [GHC] #4042: Order of declarations affects the correctness of reported error.

2010-05-10 Thread GHC
#4042: Order of  declarations affects the correctness of reported error.
+---
  Reporter:  ChrisN |  Owner:   
   
  Type:  bug| Status:  merge
   
  Priority:  normal |  Milestone:   
   
 Component:  Compiler (Parser)  |Version:  6.12.2   
   
Resolution:  fixed  |   Keywords:   
   
Difficulty: | Os:  Linux
   
  Testcase:  rename/should_fail/T4042   |   Architecture:  
Unknown/Multiple
   Failure:  Incorrect warning at compile-time  |  
+---
Changes (by simonpj):

  * status:  closed => merge


Comment:

 Ian: perhaps merge this to 6.12.3? It has come up again #4055

 Simon

-- 
Ticket URL: 
GHC 
The Glasgow Haskell Compiler
___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs