Safe Haskell | None |
---|---|
Language | Haskell2010 |
This module contains the implementation of the dhall freeze
subcommand
Synopsis
- freeze :: Maybe FilePath -> Scope -> Intent -> CharacterSet -> StandardVersion -> IO ()
- freezeImport :: FilePath -> StandardVersion -> Import -> IO Import
- freezeRemoteImport :: FilePath -> StandardVersion -> Import -> IO Import
- data Scope
- data Intent
Freeze
:: Maybe FilePath | Modify file in-place if present, otherwise read from |
-> Scope | |
-> Intent | |
-> CharacterSet | |
-> StandardVersion | |
-> IO () |
Implementation of the dhall freeze
subcommand
:: FilePath | Current working directory |
-> StandardVersion | |
-> Import | |
-> IO Import |
Retrieve an Import
and update the hash to match the latest contents
:: FilePath | Current working directory |
-> StandardVersion | |
-> Import | |
-> IO Import |
Freeze an import only if the import is a Remote
import
Types
Specifies which imports to freeze
OnlyRemoteImports | Freeze only remote imports (i.e. URLs) |
AllImports | Freeze all imports (including paths and environment variables) |
Specifies why we are adding semantic integrity checks
Secure | Protect imports with an integrity check without a fallback so that import resolution fails if the import changes |
Cache | Protect imports with an integrity check and also add a fallback import import without an integrity check. This is useful if you only want to cache imports when possible but still gracefully degrade to resolving them if the semantic integrity check has changed. |