rock-0.1.0.1: A build system for incremental, parallel, and demand-driven computations

Safe HaskellSafe
LanguageHaskell2010

Rock.HashTag

Synopsis

Documentation

class HashTag k where Source #

Hash the result of a k query.

A typical implementation looks like:

data Query a where
  ReadFile :: FilePath -> Query Text

instance HashTag Query where
  hashTagged query =
    case query of
      ReadFile {} -> hash

Methods

hashTagged :: k a -> a -> Int Source #