#2738: Regression in type checking of sections in records
-------------------------------------+--------------------------------------
 Reporter:  dons                     |          Owner:                  
     Type:  bug                      |         Status:  closed          
 Priority:  normal                   |      Milestone:                  
Component:  Compiler (Type checker)  |        Version:  6.10.1          
 Severity:  normal                   |     Resolution:  invalid         
 Keywords:                           |     Difficulty:  Unknown         
 Testcase:                           |   Architecture:  Unknown/Multiple
       Os:  Unknown/Multiple         |  
-------------------------------------+--------------------------------------
Changes (by igloo):

  * status:  new => closed
  * difficulty:  => Unknown
  * resolution:  => invalid

Comment:

 Thanks for the report. I haven't tried the full program, but this:
 {{{
 data DzenUrgencyHook = DzenUrgencyHook { duration :: Int,
                                          args :: [String] }

 dzenUrgencyHook :: DzenUrgencyHook
 dzenUrgencyHook = DzenUrgencyHook { duration = (5 `seconds`), args = [] }

 seconds :: Int -> Int
 seconds = id
 }}}
 works in 6.8.2, and also works in 6.10 if you pass `-XPostfixOperators`.
 It was a bug in 6.8 that the non-Haskell98 extension to sections was
 accepted without a language extension being turned on, so I suspect that's
 what the problem is.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2738#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to