fishfood 0.0.1.7 → 0.0.1.8
raw patch · 6 files changed
+26/−22 lines, 6 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- .ghci +1/−1
- changelog.markdown +4/−0
- debian/DEBIAN/control +1/−1
- fishfood.cabal +18/−18
- fishfood.spec +1/−1
- src-test/FishFood/Test/QuickCheck/Profiler.hs +1/−1
.ghci view
@@ -1,1 +1,1 @@-:set -isrc-lib:src-exe:src-test:dist/build/autogen -optP-include -optPdist/build/autogen/cabal_macros.h+:set -isrc-lib:src-exe:src-test:dist/build/autogen -optP-include -optPdist/build/autogen/cabal_macros.h -Wall -fno-warn-tabs
changelog.markdown view
@@ -49,5 +49,9 @@ * Added file **.ghci**. * Replaced use of module **ToolShed.Defaultable** with **Data.Default**. * Tested with **ghc-8.0.1**.+ ## 0.0.1.7 * Removed dependency on **Distribution.Package.PackageName**++## 0.0.1.8+Replaced '+ negate' with 'subtract' in **FishFood.Test.QuickCheck.Profiler**.
debian/DEBIAN/control view
@@ -1,5 +1,5 @@ Package: fishfood-Version: 0.0.1.7-1+Version: 0.0.1.8-1 Section: utils Priority: optional Architecture: amd64
fishfood.cabal view
@@ -14,7 +14,7 @@ -- along with FishFood. If not, see <http://www.gnu.org/licenses/>. Name: fishfood-Version: 0.0.1.7+Version: 0.0.1.8 Cabal-version: >= 1.10 Copyright: (C) 2013-2015 Dr. Alistair Ward License: GPL@@ -25,7 +25,7 @@ Build-type: Simple Description: Counts the number of files in a set of bins, each of which holds only those files which fall within a specific size-interval. Category: Utils-Tested-with: GHC == 7.4, GHC == 7.6, GHC == 7.8, GHC == 7.10.1, GHC == 8.0.1+Tested-with: GHC == 7.4, GHC == 7.6, GHC == 7.8, GHC == 7.10, GHC == 8.0 Homepage: http://functionalley.eu Maintainer: mailto:fishfood@functionalley.eu Bug-reports: mailto:fishfood@functionalley.eu@@ -45,7 +45,7 @@ type: git location: https://github.com/functionalley/FishFood --- Enable using: 'cabal configure -f llvm'.+-- Enable using: 'runhaskell Setup configure -f llvm --verbose'. flag llvm Description: Whether the 'llvm' compiler-backend has been installed and is required for code-generation. Manual: True@@ -72,17 +72,17 @@ mtl, toolshed >= 0.17 - if impl(ghc >= 7.4.1)- GHC-prof-options: -fprof-auto -fprof-cafs- else- GHC-prof-options: -auto-all -caf-all- if impl(ghc >= 7.0) if flag(llvm) GHC-options: -fllvm - if impl(ghc >= 8.0)- GHC-options: -Wredundant-constraints+ if impl(ghc >= 7.4.1)+ GHC-prof-options: -fprof-auto -fprof-cafs+ + if impl(ghc >= 8.0)+ GHC-options: -j -Wredundant-constraints+ else+ GHC-prof-options: -auto-all -caf-all Executable fishfood Default-language: Haskell2010@@ -98,19 +98,19 @@ mtl, toolshed >= 0.17 - if impl(ghc >= 7.4.1)- GHC-prof-options: -fprof-auto -fprof-cafs- else- GHC-prof-options: -auto-all -caf-all- if impl(ghc >= 7.0) GHC-options: -rtsopts if flag(llvm) GHC-options: -fllvm - if impl(ghc >= 8.0)- GHC-options: -Wredundant-constraints+ if impl(ghc >= 7.4.1)+ GHC-prof-options: -fprof-auto -fprof-cafs+ + if impl(ghc >= 8.0)+ GHC-options: -j -Wredundant-constraints+ else+ GHC-prof-options: -auto-all -caf-all Test-Suite test Default-language: Haskell2010@@ -135,4 +135,4 @@ toolshed >= 0.17 if impl(ghc >= 8.0)- GHC-options: -Wredundant-constraints+ GHC-options: -j -Wredundant-constraints
fishfood.spec view
@@ -21,7 +21,7 @@ Summary: Calculates file-size frequency-distribution. Name: fishfood-Version: 0.0.1.7+Version: 0.0.1.8 Release: 1 License: GPLv3 # From '/usr/share/doc/packages/rpm/GROUPS'.
src-test/FishFood/Test/QuickCheck/Profiler.hs view
@@ -40,7 +40,7 @@ results :: IO [Test.QuickCheck.Result] results = mapM Test.QuickCheck.quickCheckResult [prop_calculateProbabilityMassFunction, prop_calculateFileSizeFrequencyDistribution, prop_attendance] where prop_calculateProbabilityMassFunction, prop_calculateFileSizeFrequencyDistribution, prop_attendance :: Test.QuickCheck.Data.CommandOptions.CommandOptions -> [Data.File.FileSize] -> Test.QuickCheck.Property- prop_calculateProbabilityMassFunction commandOptions fileSizes = not (null fileSizes) && ToolShed.SelfValidate.isValid commandOptions' ==> Test.QuickCheck.label "prop_calculateProbabilityMassFunction" . (<= recip 1000000) . (+ negate 1) . sum . Data.Either.rights {-probabilities-} . map Profiler.getValue . fst {-distribution-} . Control.Monad.Writer.runWriter . Profiler.calculateFileSizeDistribution commandOptions' $ map abs fileSizes where+ prop_calculateProbabilityMassFunction commandOptions fileSizes = not (null fileSizes) && ToolShed.SelfValidate.isValid commandOptions' ==> Test.QuickCheck.label "prop_calculateProbabilityMassFunction" . (<= recip 1000000) . subtract 1 . sum . Data.Either.rights {-probabilities-} . map Profiler.getValue . fst {-distribution-} . Control.Monad.Writer.runWriter . Profiler.calculateFileSizeDistribution commandOptions' $ map abs fileSizes where commandOptions' = commandOptions { Data.CommandOptions.getDeriveProbabilityMassFunction = True } prop_calculateFileSizeFrequencyDistribution commandOptions fileSizes = not (null fileSizes) && ToolShed.SelfValidate.isValid commandOptions' ==> Test.QuickCheck.label "prop_calculateFileSizeFrequencyDistribution" . (== length fileSizes) . sum . Data.Either.lefts {-frequency-} . map Profiler.getValue . fst {-distribution-} . Control.Monad.Writer.runWriter . Profiler.calculateFileSizeDistribution commandOptions' $ map abs fileSizes where