[GHC] #3097: Parser doesn't support doc comments on type aliases
GHC
trac at galois.com
Mon Mar 16 10:49:31 EDT 2009
#3097: Parser doesn't support doc comments on type aliases
---------------------------------+------------------------------------------
Reporter: waern | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: Compiler | Version: 6.11
Severity: major | Resolution:
Keywords: Haddock | Difficulty: Unknown
Testcase: | Os: Unknown/Multiple
Architecture: Unknown/Multiple |
---------------------------------+------------------------------------------
Changes (by simonpj):
* difficulty: => Unknown
Comment:
David,
This looks accidental to me. In general, our story is: if it makes the
parser simpler, then it's fine to make the parser more generous (ie
willing to parse more stuff), and reject illegal programs later.
So maybe you should replace ''every'' use of ctype with ctypedoc (or
rather rename the latter to be the former)? That would go further than
you need, and would allow 'docs' to be parsed in more places. But if it
doesn't give rise to ambiguities, it'd be fine by me.
Make sure you run regression tests of course!
Simon
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3097#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the Glasgow-haskell-bugs
mailing list