[Haskell-cafe] Re: ANNOUNCE: haskell-src-exts 0.4.4

Neil Mitchell ndmitchell at gmail.com
Wed Dec 10 03:51:42 EST 2008

Hi Niklas,

>> I certainly have OPTIONS_DERIVE and CATCH pragmas that I've inserted
>> into various programs over time.
> Are you sure that would be a problem? Seems to me that OPTIONS_DERIVE
> would appear in the same position as any other OPTIONS pragma, in
> which case HSE will handle it just fine. I don't know where CATCH
> would appear, but intuitively it sounds like something that would
> appear as an expression (or statement which is really just an
> expression), in which case HSE will handle it too.
> It's only pragmas appearing in "surprising" locations that would cause
> HSE to balk.

Ah, so its not unrecognised pragmas, but pragmas in unrecognised
places? In that case that's fine. The CATCH pragmas go at the
statement level, so are fairly standard in terms of placement.



More information about the Haskell-Cafe mailing list