[Hackage] #190: extension ForeignFunctionInterface should imply -fvia-C for ghc

Hackage trac at galois.com
Mon Dec 17 13:01:56 EST 2007

#190: extension ForeignFunctionInterface should imply -fvia-C for ghc
  Reporter:  duncan       |        Owner:         
      Type:  enhancement  |       Status:  new    
  Priority:  normal       |    Milestone:         
 Component:  Cabal        |      Version:
  Severity:  normal       |   Resolution:         
  Keywords:               |   Difficulty:  normal 
Ghcversion:  6.8.1        |     Platform:  Linux  
Comment (by duncan):

 So what is the recommendation from GHC HQ these days?

 From the [http://haskell.org/ghc/docs/6.8.2/html/users_guide/ffi-ghc.html
 #glasgow-foreign-headers GHC user guide:]

 Note that this approach is only ''essential'' for returning floats (or if
 sizeof(int) != sizeof(int *) on your architecture) but is a Good Thing for
 anyone who cares about writing solid code. You're crazy not to do it.

 Has that recommendation changed?

 Perhaps we don't want to always use -fvia-C if we're doing FFI for the
 reasons mentioned above, but what should the default be? Sounds like it
 should still be -fvia-C and not -fasm.

Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/190#comment:3>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects

More information about the cabal-devel mailing list