[Hackage] #689: Package checker shouldn't warn about deprecated
extensions inside conditionals
Hackage
cvs-ghc at haskell.org
Wed May 12 18:21:37 EDT 2010
#689: Package checker shouldn't warn about deprecated extensions inside
conditionals
--------------------------------+-------------------------------------------
Reporter: guest | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: hackageDB website | Version: 1.6.0.3
Severity: normal | Keywords:
Difficulty: unknown | Ghcversion:
Platform: |
--------------------------------+-------------------------------------------
Hello,
I uploaded a package to Hackage (extcore 0.6) that contains the following
text in the Library section in the .cabal file:
{{{
if impl(ghc > 6.8.2) {
build-depends:syb
}
else {
extensions: PatternSignatures
}
}}}
The Hackage package checker warned me:
"Deprecated extensions: 'PatternSignatures'. Instead of
'PatternSignatures' use 'ScopedTypeVariables'."
This seems like a bug to me. Of course PatternSignatures is deprecated;
that's why it's in a clause that only applies with a version of GHC less
than 6.8.2. Warnings should trigger only for extensions that are
deprecated in the version that the extension is declared for.
--
Ticket URL: <http://hackage.haskell.org/trac/hackage/ticket/689>
Hackage <http://haskell.org/cabal/>
Hackage: Cabal and related projects
More information about the cabal-devel
mailing list