Ticket #870 (reopened defect)

Opened 22 months ago

Last modified 17 months ago

hsc2hs should include cabal_macros.h

Reported by: basvandijk Owned by:
Priority: normal Milestone:
Component: Cabal library Version: 1.10.1.0
Severity: normal Keywords:
Cc: Difficulty: very easy (<1 hour)
GHC Version: Platform:

Description

I need to use the MIN_VERSION_base(x,y,z) macro in one of my .hsc files. However, when building the package with cabal, I get an error that the macro is unknown.

It would be great if cabal_macros.h was automatically included.

Attachments

cabal_macros_in_hsc2hs.dpatch Download (6.9 KB) - added by basvandijk 22 months ago.

Change History

Changed 22 months ago by basvandijk

  • status changed from new to closed
  • resolution set to invalid

I just noticed I can include the macros in a .hsc file. I don't know why it didn't work previously.

Sorry for the noise.

Changed 22 months ago by basvandijk

  • status changed from closed to reopened
  • resolution invalid deleted

Oops I see I was mistaken.

The following patch allows the cabal macros to be used in .hsc files.

Changed 22 months ago by basvandijk

Changed 22 months ago by basvandijk

It's probably better to have an absolute path to cppHeaderName.

Changed 17 months ago by elga

Changed 17 months ago by edouard

Portabilite, portage, transfert de numero de telephone, le code Rio ou Releve d'Identite Operateur peut presenter differentes appellations. Toutefois, l'objectif reste le meme: changer d'operateur de telephonie mobile tout en gardant son numero de telephone actuel.  rio bouygues

Note: See TracTickets for help on using tickets.