[Hackage] #870: hsc2hs should include cabal_macros.h

#870: hsc2hs should include cabal_macros.h ----------------------------------+----------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Keywords: Difficulty: very easy (<1 hour) | Ghcversion: Platform: | ----------------------------------+----------------------------------------- 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. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#870: hsc2hs should include cabal_macros.h ----------------------------+----------------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: closed Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: invalid Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by basvandijk): * status: new => closed * resolution: => invalid Comment: 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. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#870: hsc2hs should include cabal_macros.h ----------------------------+----------------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: reopened Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Changes (by basvandijk): * status: closed => reopened * resolution: invalid => Comment: Oops I see I was mistaken. The following patch allows the cabal macros to be used in `.hsc` files. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#870: hsc2hs should include cabal_macros.h ----------------------------+----------------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: reopened Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(by basvandijk): It's probably better to have an absolute path to `cppHeaderName`. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#870: hsc2hs should include cabal_macros.h ----------------------------+----------------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: reopened Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(by elga): * [http://www.releve-identite-operateur.fr/rio-simyo.html simyo] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#870: hsc2hs should include cabal_macros.h ----------------------------+----------------------------------------------- Reporter: basvandijk | Owner: Type: defect | Status: reopened Priority: normal | Milestone: Component: Cabal library | Version: 1.10.1.0 Severity: normal | Resolution: Keywords: | Difficulty: very easy (<1 hour) Ghcversion: | Platform: ----------------------------+----------------------------------------------- Comment(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. [http://www.releve- identite-operateur.fr/rio-bouygues.html rio bouygues] -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/870#comment:5 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage