unison-parser-typechecker-0.0.0
Safe HaskellNone
LanguageHaskell2010

Unison.Codebase.Init

Synopsis

Documentation

data Init (m :: Type -> Type) v a Source #

Constructors

Init 

Fields

data InitError Source #

An error that occurred while initializing a codebase.

Instances

Instances details
Show InitError Source # 
Instance details

Defined in Unison.Codebase.Init

Eq InitError Source # 
Instance details

Defined in Unison.Codebase.Init

data CodebaseInitOptions Source #

CodebaseInitOptions is used to help pass around a Home directory that isn't the actual home directory of the user. Useful in tests.

data InitResult Source #

Instances

Instances details
Show InitResult Source # 
Instance details

Defined in Unison.Codebase.Init

Eq InitResult Source # 
Instance details

Defined in Unison.Codebase.Init

data BackupStrategy Source #

Constructors

Backup

Create a backup of the codebase in the same directory as the codebase, see backupCodebasePath.

NoBackup

Don't create a backup when migrating, this might be used if the caller has already created a copy of the codebase for instance.

data VacuumStrategy Source #

Constructors

Vacuum

Vacuum after migrating. Takes a bit longer but keeps the codebase clean and maybe reduces size.

NoVacuum

Don't vacuum after migrating. Vacuuming is time consuming on large codebases, so we don't want to do it during server migrations.

initCodebaseAndExit :: MonadIO m => Init m Symbol Ann -> Verbosity -> DebugName -> Maybe CodebasePath -> CodebaseLockOption -> m () Source #

try to init a codebase where none exists and then exit regardless (i.e. `ucm --codebase dir init`)