2008/10/16 Max Bolingbroke <[EMAIL PROTECTED]>:
> It certainly can: I don't know what the arguments were in favour of or
> against positional documentation during the design of Haddock, so I
> can't say which syntax would be a better idea for this particular use
> case.
One thing that just occured to me is that named annotations are
essential if you want to allow the possibility of post-hoc annotation
of a value, type or module. My implementation does not currently
support this (it would require some machinery for finding orphan
annotations etc.), but it does leave the possibility open. Alas, even
my current syntax is not perfect for that purpose since you are meant
to write:
"""
module M
{-# ANN module MyAnnotation #-}
"""
Rather than:
"""
{-# ANN module M MyAnnotation #-}
"""
All the best,
Max
_______________________________________________
Cvs-ghc mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/cvs-ghc