packages feed

perceptual-hash 0.1.3.3 → 0.1.3.5

raw patch · 5 files changed

+32/−19 lines, 5 filesdep ~par-traversePVP ok

version bump matches the API change (PVP)

Dependency ranges changed: par-traverse

API changes (from Hackage documentation)

Files

CHANGELOG.md view
@@ -1,5 +1,9 @@ # phash +## 0.1.3.5++  * Allows files to be passed via the command-line+ ## 0.1.3.3    * Fix bug
LICENSE view
@@ -1,4 +1,4 @@-Copyright Vanessa McHale (c) 2019+Copyright Vanessa McHale (c) 2019-2020  Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 
README.md view
@@ -1,7 +1,5 @@ # phash -[![Build Status](https://travis-ci.org/vmchale/phash.svg?branch=master)](https://travis-ci.org/vmchale/phash)-[![Windows build status](https://ci.appveyor.com/api/projects/status/github/vmchale/phash?svg=true)](https://ci.appveyor.com/project/vmchale/phash) [![Hackage CI](https://matrix.hackage.haskell.org/api/v2/packages/perceptual-hash/badge)](https://matrix.hackage.haskell.org/package/perceptual-hash) [![Hackage](https://img.shields.io/hackage/v/perceptual-hash.svg)](http://hackage.haskell.org/package/perceptual-hash) [![Dependencies of latest version on Hackage](https://img.shields.io/hackage-deps/v/perceptual-hash.svg)](https://hackage.haskell.org/package/perceptual-hash)@@ -13,12 +11,12 @@  - [Use](#use) - [Installation](#installation)-  - [Script](#script)   - [Pre-Built Release](#pre-built-release)   - [Source](#source) - [Library](#library)   - [Performance](#performance)   - [Foreign Library](#foreign-library)+    - [ATS Bindings](#ats-bindings)  ## Use @@ -31,18 +29,9 @@  ## Installation -### Script--On many platforms, you can install the command-line tool with a script:--```-curl -sSl https://raw.githubusercontent.com/vmchale/phash/master/bash/install.sh | sh -s-```- ### Pre-Built Release -Download the latest release from-[here](https://github.com/vmchale/phash/releases).+For many platforms, you can find binaries [here](https://www.permanent.org/p/archive/0236-0000/0236-0019/410841).  ### Source @@ -105,3 +94,8 @@  This package contains a foreign library and a [header file](https://hackage.haskell.org/package/perceptual-hash/src/include/hs_phash.h)++#### ATS Bindings++Because of the foreign library, `hs_phash` can be used in ATS as well. ATS users+of the library may be interested in [hs-bind](https://github.com/vmchale/hs-bind).
app/Parallel.hs view
@@ -9,7 +9,7 @@ import qualified Data.Map                    as M import           Data.Word                   (Word64) import           PerceptualHash              (fileHash)-import           System.Directory.Parallel   (parTraverse)+import           System.Directory.Parallel   (parTraverseAll) import           System.FilePath             (takeExtension)  imgExtension :: String -> Bool@@ -45,7 +45,7 @@ pathMaps :: [FilePath] -> IO (M.Map Word64 (NonEmpty FilePath)) pathMaps fps = do     total <- newTVarIO mempty-    parTraverse (stepMap total) fileFilter (\_ -> pure True) fps+    parTraverseAll (stepMap total) fileFilter (\_ -> pure True) fps     readTVarIO total      where fileFilter = pure . imgExtension . takeExtension
perceptual-hash.cabal view
@@ -1,9 +1,9 @@ cabal-version:      2.0 name:               perceptual-hash-version:            0.1.3.3+version:            0.1.3.5 license:            BSD3 license-file:       LICENSE-copyright:          Copyright: (c) 2019 Vanessa McHale+copyright:          Copyright: (c) 2019-2020 Vanessa McHale maintainer:         vamchale@gmail.com author:             Vanessa McHale synopsis:           Find duplicate images@@ -67,6 +67,9 @@     if impl(ghc >=8.4)         ghc-options: -Wmissing-export-lists +    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages+ foreign-library hsphash     type:             native-shared     hs-source-dirs:   foreign-src@@ -92,6 +95,9 @@     if impl(ghc >=8.4)         ghc-options: -Wmissing-export-lists +    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages+ executable phash     main-is:          Main.hs     hs-source-dirs:   app@@ -110,7 +116,7 @@         containers -any,         filepath -any,         optparse-applicative >=0.13.0.0,-        par-traverse >=0.2.0.0,+        par-traverse >=0.2.1.0,         stm >=2.3      if flag(llvm)@@ -124,6 +130,9 @@     if impl(ghc >=8.4)         ghc-options: -Wmissing-export-lists +    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages+ test-suite perceptual-hash-test     type:             exitcode-stdio-1.0     main-is:          Spec.hs@@ -143,6 +152,9 @@     if impl(ghc >=8.4)         ghc-options: -Wmissing-export-lists +    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages+ benchmark phash-bench     type:               exitcode-stdio-1.0     main-is:            Bench.hs@@ -169,3 +181,6 @@      if impl(ghc >=8.4)         ghc-options: -Wmissing-export-lists++    if impl(ghc >=8.10)+        ghc-options: -Wunused-packages