#2127: Bad error message for FFI declaration with no -fffi flag
------------------------+---------------------------------------------------
    Reporter:  tim      |       Owner:                   
        Type:  bug      |      Status:  new              
    Priority:  normal   |   Component:  Compiler (Parser)
     Version:  6.8.1    |    Severity:  minor            
    Keywords:           |    Testcase:                   
Architecture:  Unknown  |          Os:  Unknown          
------------------------+---------------------------------------------------
 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.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/2127>
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

Reply via email to