diff options
author | lassulus <lass@lassul.us> | 2017-04-30 19:56:04 +0200 |
---|---|---|
committer | lassulus <lass@lassul.us> | 2017-04-30 19:56:04 +0200 |
commit | 4d69fd63b8af1aad376e4571173eacfb40c27b89 (patch) | |
tree | 7f2943468ecb2638b55ced7bfb3ed578cf6160e3 | |
parent | ca30ec09790c60c5bc904488fb5e17c36dad10aa (diff) |
use Bloom.fromlist instead of Bloom.easyList
-rw-r--r-- | news.hs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -12,6 +12,7 @@ import Text.RSS.Syntax import qualified Text.Feed.Types as Feed import qualified Data.BloomFilter as Bloom import qualified Data.BloomFilter.Easy as Bloom +import qualified Data.BloomFilter.Hash as Bloom import Control.Concurrent import System.Environment import System.IO @@ -45,7 +46,8 @@ main = do hSetBuffering stdout LineBuffering [url, delayString] <- getArgs let delay = read delayString :: Int - rec url delay (Bloom.easyList 0.000001 ([] :: [BS.ByteString])) + let bloom0 = Bloom.fromList (Bloom.cheapHashes 3) 1024 [""] + rec url delay bloom0 return () where rec url delay bloom = |