packages feed

talash 0.1.0.0 → 0.1.0.1

raw patch · 4 files changed

+8/−4 lines, 4 filesdep ~bytestring

Dependency ranges changed: bytestring

Files

CHANGELOG.md view
@@ -3,3 +3,7 @@ ## 0.1.0.0 -- 2021-05-28  * First version. Released on an unsuspecting world.++## 0.1.0.1 -- 20121-05-28++* Minor internal changes to relax bounds on bytestring. Enables building with ghc-8.10.2. 
src/Talash/Files.hs view
@@ -100,7 +100,7 @@ ext :: ByteString -> ByteString ext c = if e == c then mempty else e   where-    e = B.takeWhileEnd (/= '.') c+    e = snd . B.spanEnd (/= '.') $ c  -- | Find files in the given set of directories that either have a specific extension (`Find` case) or else excluding a certain set of extensiosn (`Ignore` case). {-# INLINE findWithExts #-}
src/Talash/Piped.hs view
@@ -64,7 +64,7 @@           -> V.Vector Text -- ^ The candidates           -> SearchResult -- ^ The last search result           -> IO (Maybe SearchResult) -- ^ The final result. The Nothing is for the case if the input was empty signalling that the searcher should exit.-event f g (IOPipes i o) v s = (\b -> if B.null b then pure Nothing else go . decodeStringLenient $ b) . B.strip =<< B.hGetLine i+event f g (IOPipes i o) v s = (\t -> if T.null t then pure Nothing else go t) . T.strip . decodeStringLenient =<< B.hGetLine i   where     go t     = (\s' -> pream s' *> V.mapM_ (g o) (s' ^. matches) *> hFlush o $> Just s') . response f v t $ s     pream s' = B.hPutStrLn o (encodeString . fromMaybe "" $ s' ^. query) *> B.hPutStrLn o (show . V.length $ s' ^. matches)
talash.cabal view
@@ -1,6 +1,6 @@ cabal-version:      2.4 name:               talash-version:            0.1.0.0+version:            0.1.0.1  -- A short (one-line) description of the package. synopsis: Line oriented fast enough text search@@ -67,7 +67,7 @@     build-depends:base                    >=  4.14.1 && < 5,                   alfred-margaret         ^>= 1.1.1.0,                   brick                   >=  0.60 && < 0.70,-                  bytestring              >=  0.10.12 && < 0.11,+                  bytestring              >=  0.10.10 && < 0.11,                   colorful-monoids        >=  0.2.1 && < 0.3,                   ghc-compact             >=  0.1.0 && < 0.3,                   containers              >=  0.6.2 && < 0.7,