[Hackage] #385: emgm package incorrectly shown as "program" but is "library and program"

#385: emgm package incorrectly shown as "program" but is "library and program" --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: hackageDB website | Version: Severity: minor | Keywords: Difficulty: normal | Ghcversion: 6.8.3 Platform: | --------------------------------+------------------------------------------- The summary says it all. In the HackageDB package overview, it is shown whether packages contain libraries and/or programs, but this does not seem to work correctly in all cases, as emgm demonstrates. kosmikus -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/385 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#385: emgm package incorrectly shown as "program" but is "library and program" --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: hackageDB website | Version: Severity: minor | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: --------------------------------+------------------------------------------- Comment (by ross): hasLibs (flattenPackageDescription pkg) returns False, because the package description contains {{{ if flag(nolib) buildable: False }}} and a comment on flattenPackageDescription says {{{ -- | Flatten a CondTree. This will resolve the CondTree by taking all -- possible paths into account. Note that since branches represent exclusive -- choices this may not result in a "sane" result. }}} It might make sense to substitute the default values of flags here and see if that reduces the conditional. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/385#comment:1 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#385: emgm package incorrectly shown as "program" but is "library and program" --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: hackageDB website | Version: Severity: minor | Resolution: Keywords: | Difficulty: normal Ghcversion: 6.8.3 | Platform: --------------------------------+------------------------------------------- Comment (by duncan): I've been working on a new representation and api for manipulating these condition trees. Partially evaluating by applying the default values for the flags and flattening the result should be straightforward. Something like: {{{ flatten . applyFlagAssignment defaults }}} -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/385#comment:2 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#385: emgm package incorrectly shown as "program" but is "library and program" --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: hackageDB website | Version: Severity: minor | Resolution: Keywords: | Difficulty: hard (< 1 day) Ghcversion: 6.8.3 | Platform: --------------------------------+------------------------------------------- Changes (by duncan): * difficulty: normal => hard (< 1 day) Comment: See also #451. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/385#comment:3 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects

#385: some packages incorrectly shown as "program" but are actually "library and program" --------------------------------+------------------------------------------- Reporter: guest | Owner: Type: defect | Status: new Priority: normal | Milestone: Component: hackageDB website | Version: Severity: minor | Resolution: Keywords: | Difficulty: hard (< 1 day) Ghcversion: 6.8.3 | Platform: --------------------------------+------------------------------------------- Changes (by duncan): * summary: emgm package incorrectly shown as "program" but is "library and program" => some packages incorrectly shown as "program" but are actually "library and program" Comment: See also #614. -- Ticket URL: http://hackage.haskell.org/trac/hackage/ticket/385#comment:4 Hackage http://haskell.org/cabal/ Hackage: Cabal and related projects
participants (1)
-
Hackage