[Haskell-cafe] FIXME pragma
Roman Cheplyaka
roma at ro-che.info
Sun May 17 20:10:37 UTC 2015
On 17/05/15 19:42, Christopher Done wrote:
> What's the feeling on having a FIXME pragma so that I can attach
> warnings to unfinished things?
>
> |{-# FIXME foo "Reasons here." #-}|
>
> I would use the WARNING pragma but that doesn't work within a module and
> only triggers on use. Compiler errors are the one thing I and everyone
> else pays attention to, it would be very handy to have more control over
> things GHC reports to the developer to aid development.
+1. I actively use WARNING in such cases, and I'd prefer the warning to
be reported at the definition site.
It'd also be great to allow this pragma anywhere in the code, but I
realize it'd complicate the parser.
Roman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20150517/4ded1c28/attachment.sig>
More information about the Haskell-Cafe
mailing list