Skip to content

-ffi poorly documented

The flag is not mentioned in the "using FFI in GHC"
section, and only once elsewhere, in the overall flags
section.  It was rather confusing
as to why ghc was choking on the import bit of "foreign
import ...".

Yes, it's only a one-time road-block for new users of
FFI, but it's a bit annoying that it wasn't obvious
that FFI features were only enabled when the -ffi flag
is passed.
Trac metadata
Trac field Value
Version 6.2.2
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution ResolvedFixed
Component Documentation
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information