hash package:stack

Get a SourceMapHash for a given SourceMap Basic rules:
  • If someone modifies a GHC installation in any way after Stack looks at it, they voided the warranty. This includes installing a brand new build to the same directory, or registering new packages to the global database.
  • We should include everything in the hash that would relate to immutable packages and identifying the compiler itself. Mutable packages (both project packages and dependencies) will never make it into the snapshot database, and can be ignored.
  • Target information is only relevant insofar as it effects the dependency map. The actual current targets for this build are irrelevant to the cache mechanism, and can be ignored.
  • Make sure things like profiling and haddocks are included in the hash
Set the hash checks to be run when verifying.
If 1 is enabled, the Git hash in the build directory, otherwise Nothing.
A unique hash for the immutable portions of a SourceMap.