#4483: Offside rule for function definitions
------------------------------+---------------------------------------------
  Reporter:  gidyn            |          Owner:                  
      Type:  feature request  |         Status:  closed          
  Priority:  normal           |      Milestone:                  
 Component:  Compiler         |        Version:  6.12.3          
Resolution:  invalid          |       Keywords:                  
  Testcase:                   |      Blockedby:                  
Difficulty:                   |             Os:  Unknown/Multiple
  Blocking:                   |   Architecture:  Unknown/Multiple
   Failure:  None/Unknown     |  
------------------------------+---------------------------------------------

Comment(by simonmar):

 Replying to [comment:2 gidyn]:
 > I would have expected that the function name (fac in this example) would
 trigger offside the same way let and where do. Is this being naive?

 A little :-)  Take a look at the definition of the layout rule in the
 Haskell Report:
 
[http://www.haskell.org/onlinereport/haskell2010/haskellch10.html#x17-17800010.3]

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4483#comment:3>
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