packages feed

fuzzyset 0.1.0.7 → 0.1.0.8

raw patch · 2 files changed

+18/−14 lines, 2 filesdep ~data-defaultdep ~ieee754dep ~text-metrics

Dependency ranges changed: data-default, ieee754, text-metrics

Files

fuzzyset.cabal view
@@ -1,5 +1,5 @@ name:                fuzzyset-version:             0.1.0.7+version:             0.1.0.8 synopsis:            Fuzzy set for approximate string matching description:         This library is based on the Python and JavaScript libraries with the same name. homepage:            https://github.com/laserpants/fuzzyset-haskell@@ -11,7 +11,7 @@ category:            Data build-type:          Simple extra-source-files:  README.md-cabal-version:       >=1.10+cabal-version:       >= 1.10  library   hs-source-dirs:      src@@ -22,12 +22,12 @@                      , Data.FuzzySet.Util   build-depends:       base >= 4.7 && < 5                      , base-unicode-symbols >= 0.2.2.4 && < 0.3-                     , data-default ==0.7.1.1-                     , lens >=4.15.4-                     , text >=1.2.2.2-                     , text-metrics ==0.3.0-                     , unordered-containers >=0.2.8.0-                     , vector >=0.12.0.1+                     , data-default >= 0.7.1.1 && < 0.8+                     , lens >= 4.15.4+                     , text >= 1.2.2.2+                     , text-metrics >= 0.3.0 && < 0.4+                     , unordered-containers >= 0.2.8.0+                     , vector >= 0.12.0.1   default-language:    Haskell2010  test-suite fuzzyset-test@@ -36,12 +36,12 @@   main-is:             Spec.hs   build-depends:       base                      , base-unicode-symbols >= 0.2.2.4 && < 0.3-                     , hspec >=2.4.4+                     , hspec >= 2.4.4                      , fuzzyset-                     , lens >=4.15.4-                     , text >=1.2.2.2-                     , ieee754 ==0.8.0-                     , unordered-containers >=0.2.8.0+                     , lens >= 4.15.4+                     , text >= 1.2.2.2+                     , ieee754 >= 0.8.0 && < 0.9+                     , unordered-containers >= 0.2.8.0   ghc-options:         -threaded -rtsopts -with-rtsopts=-N   default-language:    Haskell2010 
src/Data/FuzzySet/Util.hs view
@@ -1,4 +1,4 @@-{-# LANGUAGE UnicodeSyntax #-}+{-# LANGUAGE CPP, UnicodeSyntax #-} module Data.FuzzySet.Util   ( distance   , enclosedIn@@ -7,7 +7,9 @@   , substr   , ε   , (<$$>)+#if !MIN_VERSION_base_unicode_symbols(0,2,3)   , (−)+#endif   , (×)   ) where @@ -68,11 +70,13 @@ ε = empty {-# INLINE ε #-} +#if !MIN_VERSION_base_unicode_symbols(0,2,3) -- | Unicode minus sign symbol. Slightly longer than the hyphen-minus commonly --   used, U+2212 aligns naturally with the horizontal bar of the + symbol. (−) ∷ Num α ⇒ α → α → α (−) = (-) {-# INLINE (−) #-}+#endif  -- | Another unicode operator. This one for multiplication. (×) ∷ Num α ⇒ α → α → α