rock-0.1.0.1: A build system for incremental, parallel, and demand-driven computations
Rock.HashTag
class HashTag k where Source #
Hash the result of a k query.
k
A typical implementation looks like:
data Query a where ReadFile :: FilePath -> Query Text instance HashTag Query where hashTagged query = case query of ReadFile {} -> hash
FilePath
Text
HashTag
hashTagged
hash
Methods
hashTagged :: k a -> a -> Int Source #