Ticket #2127 (closed feature request: wontfix)
Bad error message for FFI declaration with no -fffi flag
| Reported by: | tim | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | _|_ |
| Component: | Compiler (Parser) | Version: | 6.8.1 |
| Keywords: | Cc: | ||
| Operating System: | Unknown/Multiple | Architecture: | Unknown/Multiple |
| Type of failure: | None/Unknown | Difficulty: | Unknown |
| Test Case: | Blocked By: | ||
| Blocking: | Related Tickets: |
Description
If I compile:
module Ccall where
import Foreign.C.Types
foreign import ccall "stdio.h putchar"
putchar :: CInt -> IO CInt
I get:
$ ghc-6.8.1 -c -fext-core Ccall.hs -no-recomp Ccall.hs:5:8: parse error on input `import'
A better error message would be to suggest passing the -fffi flag.
Change History
Note: See
TracTickets for help on using
tickets.
