kowainik / hash-store

Hash as cache
https://kowainik.github.io/projects/hash-store
Mozilla Public License 2.0
2 stars 1 forks source link

Implement `hashStore` function #3

Closed chshersh closed 6 years ago

chshersh commented 6 years ago

This type signature:

hashStore :: FilePath 
          -> (ByteString -> IO ByteString) 
          -> (String {- filename -}, ByteString) 
          -> IO (String {- hash -}, ByteString)