Re: [GHC] #2189: hSetBuffering stdin NoBuffering doesn't work on Windows

2009-03-06 Thread GHC
#2189: hSetBuffering stdin NoBuffering doesn't work on Windows
---+
Reporter:  FalconNL|Owner:  igloo  
Type:  merge   |   Status:  new
Priority:  high|Milestone:  6.10.2 
   Component:  libraries/base  |  Version:  6.8.2  
Severity:  normal  |   Resolution: 
Keywords:  hsetbuffering buffering buffer  |   Difficulty:  Unknown
Testcase:  |   Os:  Windows
Architecture:  x86 |  
---+
Changes (by simonmar):

  * owner:  simonmar = igloo
  * type:  bug = merge

Comment:

 Patch applied:

 {{{
 Thu Mar  5 03:33:23 PST 2009  Simon Marlow marlo...@gmail.com
   * FIX #2189: re-enabled cooked mode for Console-connected Handles on
 Windows
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2189#comment:22
GHC http://www.haskell.org/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] #3076: Make genericLength tail-recursive so it doesn't overflow stack

2009-03-06 Thread GHC
#3076: Make genericLength tail-recursive so it doesn't overflow stack
-+--
Reporter:  Syzygies  |  Owner:  
Type:  run-time performance bug  | Status:  new 
Priority:  normal|  Component:  Compiler
 Version:  6.10.1|   Severity:  normal  
Keywords:|   Testcase:  
  Os:  Unknown/Multiple  |   Architecture:  Unknown/Multiple
-+--
 A likely use for genericLength is to count lists of more than Int
 elements. However, the source code is not tail-recursive, making a poor
 consumer, so genericLength easily overflows stack.

 Here is the source code from 6.10.1:

 {{{
 genericLength   :: (Num i) = [b] - i
 genericLength []=  0
 genericLength (_:l) =  1 + genericLength l
 }}}

 Here is a proposed alternative:

 {{{
 genericLength ∷ (Num i) ⇒ [b] → i
 genericLength = len 0 where
   len n [] = n
   len n (_:xt) = len (n+1) xt
 }}}

 In my test application (enumerating the 66,960,965,307 atomic lattices on
 six atoms) this alternative avoids overflowing the stack.

 [This is not the same issue as
 http://hackage.haskell.org/trac/ghc/ticket/2962]

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3076
GHC http://www.haskell.org/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] #3075: validation requires a tool that is not included in utils

2009-03-06 Thread GHC
#3075: validation requires a tool that is not included in utils
-+--
Reporter:  nr|Owner:  igloo  
Type:  bug   |   Status:  new
Priority:  normal|Milestone: 
   Component:  Build System  |  Version:  6.11   
Severity:  major |   Resolution: 
Keywords:|   Difficulty:  Unknown
Testcase:|   Os:  Linux  
Architecture:  x86   |  
-+--
Changes (by igloo):

  * owner:  = igloo
  * difficulty:  = Unknown

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3075#comment:1
GHC http://www.haskell.org/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] #3077: 'make' fails in utils (6.11)

2009-03-06 Thread GHC
#3077: 'make' fails in utils (6.11)
---+
Reporter:  nr  |  Owner:  
Type:  bug | Status:  new 
Priority:  normal  |  Component:  Build System
 Version:  6.11|   Severity:  normal  
Keywords:  |   Testcase:  
  Os:  Linux   |   Architecture:  x86 
---+
 In order to get 'make boot' to work in compiler, I tried running 'make' in
 utils.
 Something's off with configuration it appears.  I'm attaching full output.

 Sorry to keep submitting these things with no patches.  I don't have a
 strong enough picture of what's ''supposed'' to happen during build to be
 confident of making things better not worse.

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3077
GHC http://www.haskell.org/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] #2189: hSetBuffering stdin NoBuffering doesn't work on Windows

2009-03-06 Thread GHC
#2189: hSetBuffering stdin NoBuffering doesn't work on Windows
---+
Reporter:  FalconNL|Owner:  igloo  
Type:  merge   |   Status:  closed 
Priority:  high|Milestone:  6.10.2 
   Component:  libraries/base  |  Version:  6.8.2  
Severity:  normal  |   Resolution:  fixed  
Keywords:  hsetbuffering buffering buffer  |   Difficulty:  Unknown
Testcase:  |   Os:  Windows
Architecture:  x86 |  
---+
Changes (by igloo):

  * status:  new = closed
  * resolution:  = fixed

Comment:

 Merged

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/2189#comment:23
GHC http://www.haskell.org/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] #3078: Erroneous warnings for -XPatternGuards

2009-03-06 Thread GHC
#3078: Erroneous warnings for -XPatternGuards
---+
Reporter:  guest   |  Owner:
Type:  bug | Status:  new   
Priority:  normal  |  Component:  Compiler  
 Version:  6.10.1  |   Severity:  normal
Keywords:  |   Testcase:
  Os:  Linux   |   Architecture:  x86_64 (amd64)
---+
 As nonstandard PatternGuards I get a meaningless warning:
 {{{
 walltest.hs:8:10:
 Warning: Pattern match(es) are non-exhaustive
  In the definition of `n': Patterns not matched:
 Ok, modules loaded: Main.
 }}}


 {{{
 {-# LANGUAGE PatternGuards #-}
 {-# OPTIONS -Wall #-}

 data T = A Int | B Int

 funny :: T - Int
 funny t = n
 where n | A x - t = x
 | B x - t = x
 }}}

 But none of that happens when using a case expression for the same thing:
 {{{
 {-# OPTIONS -Wall #-}

 data T = A Int | B Int

 funny :: T - Int
 funny t = n
 where n = case t of
 (A x) - x
 (B x) - x
 }}}

-- 
Ticket URL: http://hackage.haskell.org/trac/ghc/ticket/3078
GHC http://www.haskell.org/ghc/
The Glasgow Haskell Compiler___
Glasgow-haskell-bugs mailing list
Glasgow-haskell-bugs@haskell.org
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs