#3624: Parse fails when foreign import declarations contain path information
(like
those generated by c2hs).
-----------------------------+----------------------------------------------
Reporter: twadleigh | Owner:
Type: bug | Status: new
Priority: normal | Component: Compiler (Parser)
Version: 6.12.1 RC1 | Severity: major
Keywords: FFI, c2hs | Testcase:
Os: Unknown/Multiple | Architecture: Unknown/Multiple
-----------------------------+----------------------------------------------
An import declaration like:
{{{
foreign import ccall safe "path/to/test.h test" test :: IO ()
}}}
fails with:
{{{
test.hs:7:26: Malformed entity string
}}}
I've marked this as a major issue because it ought to affect, for
instance, any library that depends on c2hs (which generates bindings of
this kind).
I'm not sure if this is a GHC regression or actually an improvement in
fidelity to the FFI spec (although I didn't see anything in the spec that
would preclude qualifying the header name with path info).
--
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/3624>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs