[Haskell-cafe] FIXME pragma

Tobias Florek haskell at ibotty.net
Mon May 18 10:12:38 UTC 2015


Hi,

>>     I also wanted such a feature but eventually I just went with:
>>
>>     __todo :: String -> a
>>     {-# WARNING __todo "TODO" #-}
>>     __todo msg = error $ "TODO: " ++ msg
>>
>>     __fixme :: a -> a
>>     {-# WARNING __fixme "FIXME" #-}
>>     __fixme = id

> I found WARNING fell short because it doesn't work on module-local
> definitions, and only triggers on use.

Maybe I am missing things, but `__todo` should generate a warning at use
site which _is_ the module definition of the thing using it.

Cheers,
 Tobi(as Florek)


More information about the Haskell-Cafe mailing list