#1253: Can't use explicit braces/semicolons (i.e. non-layout) at top level with
ghci
----------------------+-----------------------------------------------------
Reporter: guest | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 6.6.2
Component: Compiler | Version: 6.6
Severity: normal | Resolution:
Keywords: | Difficulty: Unknown
Testcase: | Architecture: Unknown
Os: Unknown |
----------------------+-----------------------------------------------------
Changes (by igloo):
* milestone: => 6.6.2
Comment:
The report seems quite clear that we should accept this:
{{{
An abbreviated form of module, consisting only of the module body, is
permitted. If this is used, the header is assumed to be `module Main(main)
where'. If the first lexeme in the abbreviated module is not a {, then the
layout rule applies for the top level of the module.
}}}
but we don't in either 6.6 branch or HEAD.
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/1253>
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