packunused 0.1.0.0 → 0.1.0.1
raw patch · 2 files changed
+18/−14 lines, 2 filesdep ~Cabaldep ~haskell-src-exts
Dependency ranges changed: Cabal, haskell-src-exts
Files
- packunused.cabal +13/−13
- packunused.hs +5/−1
packunused.cabal view
@@ -1,5 +1,5 @@ name: packunused-version: 0.1.0.0+version: 0.1.0.1 synopsis: Tool for detecting redundant Cabal package dependencies homepage: https://github.com/hvr/packunused license: BSD3@@ -8,8 +8,8 @@ maintainer: Herbert Valerio Riedel <hvr@gnu.org> category: Distribution build-type: Simple-cabal-version: >=1.14-tested-with: GHC >=7.4.1+cabal-version: >=1.10+tested-with: GHC ==7.6.3, GHC ==7.6.2, GHC ==7.6.1, GHC ==7.4.2, GHC ==7.4.1 description: This simple CLI tool allows to find out which of the packages listed as @build-depends@ in a Cabal package description file are redundant.@@ -42,32 +42,32 @@ . > detected package components > ~~~~~~~~~~~~~~~~~~~~~~~~~~~- > + > > - executable(s): packunused- > + > > (component names suffixed with '*' are not configured to be built)- > + > > executable(packunused) > ~~~~~~~~~~~~~~~~~~~~~~- > + > > The following package depencencies seem redundant:- > + > > - criterion-0.6.2.0-9dd4d764629a47662168743b2dfda9bc- > + > source-repository head type: git location: https://github.com/hvr/packunused.git executable packunused- main-is: packunused.hs + main-is: packunused.hs default-language: Haskell2010 other-extensions: CPP, DeriveDataTypeable, RecordWildCards ghc-options: -Wall -fwarn-tabs -fno-warn-unused-do-bind- build-depends: + build-depends: base >=4.5 && <4.7,- Cabal >=1.14 && <1.18,+ Cabal >=1.14 && <1.17, cmdargs ==0.10.*, directory >=1.1 && <1.3, filepath ==1.3.*,- haskell-src-exts ==1.13.*+ haskell-src-exts >=1.13 && <1.15
packunused.hs view
@@ -233,4 +233,8 @@ extractSpecs (Just (False, impspecs)) = map H.prettyPrint impspecs extractSpecs _ = error "unexpected import specs" - exts = map id [ H.MagicHash, H.PackageImports, H.CPP, H.TypeOperators, H.TypeFamilies {- , H.ExplicitNamespaces -} ]+#if MIN_VERSION_haskell_src_exts(1,14,0)+ exts = map H.EnableExtension [ H.MagicHash, H.PackageImports, H.CPP, H.TypeOperators, H.TypeFamilies ]+#else+ exts = [ H.MagicHash, H.PackageImports, H.CPP, H.TypeOperators, H.TypeFamilies {- , H.ExplicitNamespaces -} ]+#endif