[Hackage] #245: Cabal should support hsc2hs's stub .c feature

Hackage cvs-ghc at haskell.org
Tue Jan 3 20:22:13 CET 2012


#245: Cabal should support hsc2hs's stub .c feature
----------------------------+-----------------------------------------------
  Reporter:  guest          |        Owner:         
      Type:  defect         |       Status:  new    
  Priority:  low            |    Milestone:  _|_    
 Component:  Cabal library  |      Version:  1.2.3.0
  Severity:  normal         |     Keywords:         
Difficulty:  normal         |   Ghcversion:  6.8.2  
  Platform:                 |  
----------------------------+-----------------------------------------------
Changes (by acowley):

 * cc: acowley@… (added)


Comment:

 I've also run into this issue. Using #def is very convenient for wrapping
 a C interface (e.g. to handle passing structs by value). To work around
 the cabal limitation, one can either use a Makefile or a custom Setup.hs
 to manually invoke hsc2hs in the src directory before running the usual
 cabal install. This requires that the generated *_hsc.c files be specified
 in the .cabal file.

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



More information about the cabal-devel mailing list