Bugs item #493621, was opened at 2001-12-15 11:04
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=493621&group_id=8032
Category: Compiler (FFI)
Group: 5.02
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Volker Stolz (volkersf)
Assigned to: Nobody/Anonymous (nobody)
Summary: ghc won't #include from .lhs
Initial Comment:
I just found out the hard way that the following does not work:
1)
Write a .hsc using \begin{code}-\end{code} which contains
"#include <foo.h>" and calls a function which is prototyped in
foo.h
2) Run this through "hsc2hc -o foo.lhs foo.hsc"
3) Compile
with ghc: You're prototypes are missing, somehow the include has
been lost :-/
Using "plain" .hs works.
Solution: Don't use
literate Haskell for .hsc, I haven't checked with bird-tracks,
though, but I suspect the same will happen. I guess that's why it is
called "hsc2hs" and not "hsc2lhs"...
----------------------------------------------------------------------
>Comment By: Simon Marlow (simonmar)
Date: 2002-07-02 16:34
Message:
Logged In: YES
user_id=48280
hsc2hs doesn't support literate Haskell input at the moment.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=108032&aid=493621&group_id=8032
_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs