On Wed, Jun 26, 2002 at 03:02:54PM +0100, Ian Lynagh wrote:
> On Wed, Jun 26, 2002 at 02:20:52PM +0100, Simon Marlow wrote:
> > 
> > The FFI doesn't have support for grabbing the values of #defines - you need to use 
>another tool to do this (autoconf, hsc2hs, c2hs, green-card, hdirect, whatever).
> 
> OK, I'll have a look at these.

hsc2hs looks like it will be the easiest for what I want. However, it
doesn't seem to support literate scripts (with Bird tracks). What it
intends to be pragmas turn into comments and, although this isn't in
itself a problem for how I am using it so far, this sometimes causes it
to put comments next to code lines.

Can I suggest a flag that causes a leading '>' to be emitted, and
possibly an extension that defaults to this (perhaps .lhsc on OS/FS
combinations that support >3 letter extensions)? The default output
extension should be .lhs too.


Thanks
Ian

_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to