Skip to content

Commit

Permalink
Remove redundant definitions of average
Browse files Browse the repository at this point in the history
In ZipSink section of a tutorial there are two definitions of `average` function that are not used.
  • Loading branch information
aske committed Oct 31, 2016
1 parent 4c567d8 commit 4076db9
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions README.md
Expand Up @@ -1431,12 +1431,6 @@ import "cryptonite-conduit" Crypto.Hash.Conduit (sinkHash)
import "cryptonite" Crypto.Hash (Digest, SHA256)
import Data.Void (Void)

average :: Monad m => ConduitM Double Void m Double
average =
getZipSink (go <$> ZipSink sumC <*> ZipSink lengthC)
where
go total len = total / fromIntegral len

main :: IO ()
main = do
digest <- runConduitRes
Expand All @@ -1462,12 +1456,6 @@ import "cryptonite" Crypto.Hash (Digest, SHA256)
import Data.Void (Void)
import Network.HTTP.Simple (httpSink)

average :: Monad m => ConduitM Double Void m Double
average =
getZipSink (go <$> ZipSink sumC <*> ZipSink lengthC)
where
go total len = total / fromIntegral len

main :: IO ()
main = do
digest <- runResourceT $ httpSink "http://httpbin.org"
Expand Down

0 comments on commit 4076db9

Please sign in to comment.