[Hackage] #294: Setup build should call Setup configure, if necessary

#294: Setup build should call Setup configure, if necessary ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Component: Cabal library | Version: Severity: minor | Keywords: Difficulty: normal | Ghcversion: 6.8.2 Platform: | ----------------------------+----------------------------------------------- If you change the Cabal description file of your project, you need to reconfigure it by calling ''Setup.lhs config'' (assuming that your Setup program is called ''Setup.lhs''). Since most editors don't know anything about Cabal, that requires you to have a shell open and type the command in question manually, which can get quite annoying, if you reconfigure often. ''Setup.lhs build'' recognizes the case, when the configuration has changed and dies with an error. It would be very useful, if it would call the ''configure'' command automatically instead, for example with the last used flags, or with a default set of flags configured in the description file. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/294 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#294: Setup build should call Setup configure, if necessary ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Changes (by duncan): * severity: minor => normal * milestone: => Cabal-1.8 Comment: What need to happen is for the configure flags to be serialised and stored in a file under `dist/setup`. Then when the `.cabal` file changes we should just re-configure using the same set of flags as before. This is not terribly difficult. There is already a framework for serialising sets of flags in either command line or config file style. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/294#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#294: Setup build should call Setup configure, if necessary ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): See also #518 for an alternative approach. I think this approach is better however. It is simpler. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/294#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#294: Setup build should call Setup configure, if necessary ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: enhancement | Status: new Priority: normal | Milestone: Cabal-1.8 Component: Cabal library | Version: Severity: normal | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.2 | Platform: ----------------------------+----------------------------------------------- Comment (by duncan): See also #477 and #309 about cabal-install aspects of this. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/294#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage