darcs-2.16.4: a distributed, interactive, smart revision control system
Safe HaskellNone
LanguageHaskell2010

Darcs.UI.Options.All

Description

All the concrete options.

Notes:

  • The term "option" refers to a flag or combination of flags that together form a part of a command's configuration. Ideally, options should be orthogonal to each other, so we can freely combine them.
  • A primitive (indivisible) option has an associate value type.
  • An option named "xyzActions" represents a set of flags that act as mutually exclusive sub-commands. They typically have a dedicated value type named "XyzAction".
  • This module is probably best imported qualified. This is in contrast to the current practice of using subtly differing names to avoid name clashes for closely related items. For instance, the data constructors for an option's value type and the corresponding data constructors in DarcsFlag may coincide. This is also why we import Darcs.UI.Flags qualified here.
  • When the new options system is finally in place, no code other than the one for constructing options should directly refer to DarcsFlag constructors.
Synopsis

Documentation

type DarcsOption = OptSpec DarcsOptDescr Flag Source #

DarcsOption instantiates the first two type parameters of OptSpec to what we need in darcs. The first parameter is instantiated to The flag type is instantiate to Flag.

class YesNo a where Source #

Minimal complete definition

yes

Methods

yes :: a -> Bool Source #

no :: a -> Bool Source #

Instances

Instances details
YesNo WithWorkingDir Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WantGuiPause Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo UseIndex Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo InheritDefault Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo LeaveTestDir Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo SetScriptsExecutable Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo RunTest Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo IncludeBoring Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo LookForMoves Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo LookForReplaces Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo LookForAdds Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo DryRun Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

yes :: DryRun -> Bool Source #

no :: DryRun -> Bool Source #

YesNo UseCache Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo Reorder Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WithPatchIndex Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo Compression Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WithSummary Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WithContext Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo XmlOutput Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo EnumPatches Source # 
Instance details

Defined in Darcs.UI.Options.All

data RootAction Source #

Options for darcs iself that act like sub-commands.

Instances

Instances details
Eq RootAction Source # 
Instance details

Defined in Darcs.UI.Options.All

Show RootAction Source # 
Instance details

Defined in Darcs.UI.Options.All

data StdCmdAction Source #

Constructors

Help 
ListOptions 
Disable 

Instances

Instances details
Eq StdCmdAction Source # 
Instance details

Defined in Darcs.UI.Options.All

Show StdCmdAction Source # 
Instance details

Defined in Darcs.UI.Options.All

data Verbosity Source #

Constructors

Quiet 
NormalVerbosity 
Verbose 

Instances

Instances details
Eq Verbosity Source # 
Instance details

Defined in Darcs.Repository.Flags

Show Verbosity Source # 
Instance details

Defined in Darcs.Repository.Flags

data HooksConfig Source #

Constructors

HooksConfig 

Fields

data HookConfig Source #

Constructors

HookConfig 

Fields

data UseCache Source #

Constructors

YesUseCache 
NoUseCache 

Instances

Instances details
Eq UseCache Source # 
Instance details

Defined in Darcs.Repository.Flags

Show UseCache Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo UseCache Source # 
Instance details

Defined in Darcs.UI.Options.All

data XmlOutput Source #

Constructors

NoXml 
YesXml 

Instances

Instances details
Eq XmlOutput Source # 
Instance details

Defined in Darcs.UI.Options.All

Show XmlOutput Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo XmlOutput Source # 
Instance details

Defined in Darcs.UI.Options.All

data DryRun Source #

Constructors

YesDryRun 
NoDryRun 

Instances

Instances details
Eq DryRun Source # 
Instance details

Defined in Darcs.Repository.Flags

Methods

(==) :: DryRun -> DryRun -> Bool #

(/=) :: DryRun -> DryRun -> Bool #

Show DryRun Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo DryRun Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

yes :: DryRun -> Bool Source #

no :: DryRun -> Bool Source #

dryRun :: PrimDarcsOption DryRun Source #

TODO someone wrote here long ago that any time --dry-run is a possibility automated users should be able to examine the results more easily with --xml. See also issue2397. dryRun w/o xml is currently used in add, pull, and repair.

data WantGuiPause Source #

Instances

Instances details
Eq WantGuiPause Source # 
Instance details

Defined in Darcs.Repository.Flags

Show WantGuiPause Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo WantGuiPause Source # 
Instance details

Defined in Darcs.UI.Options.All

data SelectDeps Source #

Constructors

NoDeps 
AutoDeps 
PromptDeps 

Instances

Instances details
Eq SelectDeps Source # 
Instance details

Defined in Darcs.UI.Options.All

Show SelectDeps Source # 
Instance details

Defined in Darcs.UI.Options.All

data RemoteRepos Source #

Constructors

RemoteRepos [String] 

Instances

Instances details
Eq RemoteRepos Source # 
Instance details

Defined in Darcs.Repository.Flags

Show RemoteRepos Source # 
Instance details

Defined in Darcs.Repository.Flags

newRepo :: PrimDarcsOption (Maybe String) Source #

This option is for when a new repo gets created. Used for clone, convert import, convert darcs-2, and initialize. For clone and initialize it has the same effect as giving the name as a normal argument.

The --repodir alias is there for compatibility, should be removed eventually.

TODO We need a way to deprecate options / option names.

data SetDefault Source #

Instances

Instances details
Eq SetDefault Source # 
Instance details

Defined in Darcs.Repository.Flags

Show SetDefault Source # 
Instance details

Defined in Darcs.Repository.Flags

data Logfile Source #

Constructors

Logfile 

data LookForAdds Source #

Instances

Instances details
Eq LookForAdds Source # 
Instance details

Defined in Darcs.Repository.Flags

Show LookForAdds Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo LookForAdds Source # 
Instance details

Defined in Darcs.UI.Options.All

data LookForMoves Source #

Instances

Instances details
Eq LookForMoves Source # 
Instance details

Defined in Darcs.Repository.Flags

Show LookForMoves Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo LookForMoves Source # 
Instance details

Defined in Darcs.UI.Options.All

data UseIndex Source #

Constructors

UseIndex 
IgnoreIndex 

Instances

Instances details
Eq UseIndex Source # 
Instance details

Defined in Darcs.Repository.Flags

Show UseIndex Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo UseIndex Source # 
Instance details

Defined in Darcs.UI.Options.All

data ScanKnown Source #

Constructors

ScanKnown

Just files already known to darcs

ScanAll

All files, i.e. look for new ones

ScanBoring

All files, even boring ones

Instances

Instances details
Eq ScanKnown Source # 
Instance details

Defined in Darcs.Repository.Flags

Show ScanKnown Source # 
Instance details

Defined in Darcs.Repository.Flags

onlyToFiles :: PrimDarcsOption Bool Source #

TODO: see issue2395

data DiffAlgorithm Source #

Constructors

PatienceDiff 
MyersDiff 

Instances

Instances details
Eq DiffAlgorithm Source # 
Instance details

Defined in Darcs.Util.Diff

Show DiffAlgorithm Source # 
Instance details

Defined in Darcs.Util.Diff

data WithContext Source #

Constructors

NoContext 
YesContext 

Instances

Instances details
Eq WithContext Source # 
Instance details

Defined in Darcs.UI.Options.All

Show WithContext Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WithContext Source # 
Instance details

Defined in Darcs.UI.Options.All

data ExternalDiff Source #

Constructors

ExternalDiff 

Instances

Instances details
Eq ExternalDiff Source # 
Instance details

Defined in Darcs.UI.Options.All

Show ExternalDiff Source # 
Instance details

Defined in Darcs.UI.Options.All

data TestChanges Source #

Instances

Instances details
Eq TestChanges Source # 
Instance details

Defined in Darcs.UI.Options.All

data RunTest Source #

Constructors

YesRunTest 
NoRunTest 

Instances

Instances details
Eq RunTest Source # 
Instance details

Defined in Darcs.Repository.Flags

Methods

(==) :: RunTest -> RunTest -> Bool #

(/=) :: RunTest -> RunTest -> Bool #

Show RunTest Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo RunTest Source # 
Instance details

Defined in Darcs.UI.Options.All

data LeaveTestDir Source #

Instances

Instances details
Eq LeaveTestDir Source # 
Instance details

Defined in Darcs.Repository.Flags

Show LeaveTestDir Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo LeaveTestDir Source # 
Instance details

Defined in Darcs.UI.Options.All

data Sign Source #

Instances

Instances details
Eq Sign Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

(==) :: Sign -> Sign -> Bool #

(/=) :: Sign -> Sign -> Bool #

Show Sign Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

showsPrec :: Int -> Sign -> ShowS #

show :: Sign -> String #

showList :: [Sign] -> ShowS #

data Verify Source #

Instances

Instances details
Eq Verify Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

(==) :: Verify -> Verify -> Bool #

(/=) :: Verify -> Verify -> Bool #

Show Verify Source # 
Instance details

Defined in Darcs.UI.Options.All

conflictsNo :: PrimDarcsOption (Maybe AllowConflicts) Source #

push, apply, rebase apply: default to NoAllowConflicts

reorder :: PrimDarcsOption Reorder Source #

pull, apply, rebase pull, rebase apply

data Compression Source #

Instances

Instances details
Eq Compression Source # 
Instance details

Defined in Darcs.Repository.Flags

Show Compression Source # 
Instance details

Defined in Darcs.Repository.Flags

YesNo Compression Source # 
Instance details

Defined in Darcs.UI.Options.All

data Reorder Source #

Constructors

NoReorder 
Reorder 

Instances

Instances details
Eq Reorder Source # 
Instance details

Defined in Darcs.Repository.Flags

Methods

(==) :: Reorder -> Reorder -> Bool #

(/=) :: Reorder -> Reorder -> Bool #

YesNo Reorder Source # 
Instance details

Defined in Darcs.UI.Options.All

data Output Source #

Instances

Instances details
Eq Output Source # 
Instance details

Defined in Darcs.UI.Options.All

Methods

(==) :: Output -> Output -> Bool #

(/=) :: Output -> Output -> Bool #

Show Output Source # 
Instance details

Defined in Darcs.UI.Options.All

data WithSummary Source #

Constructors

NoSummary 
YesSummary 

Instances

Instances details
Eq WithSummary Source # 
Instance details

Defined in Darcs.UI.Options.All

Show WithSummary Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo WithSummary Source # 
Instance details

Defined in Darcs.UI.Options.All

data RemoteDarcs Source #

Instances

Instances details
Eq RemoteDarcs Source # 
Instance details

Defined in Darcs.Repository.Flags

Show RemoteDarcs Source # 
Instance details

Defined in Darcs.Repository.Flags

data NetworkOptions Source #

TODO: reconsider this grouping of options

data UMask Source #

Constructors

YesUMask String 
NoUMask 

Instances

Instances details
Eq UMask Source # 
Instance details

Defined in Darcs.Repository.Flags

Methods

(==) :: UMask -> UMask -> Bool #

(/=) :: UMask -> UMask -> Bool #

Show UMask Source # 
Instance details

Defined in Darcs.Repository.Flags

Methods

showsPrec :: Int -> UMask -> ShowS #

show :: UMask -> String #

showList :: [UMask] -> ShowS #

data CloneKind Source #

Constructors

LazyClone

Just copy pristine and inventories

NormalClone

First do a lazy clone then copy everything

CompleteClone

Same as Normal but omit telling user they can interrumpt

Instances

Instances details
Eq CloneKind Source # 
Instance details

Defined in Darcs.Repository.Flags

Show CloneKind Source # 
Instance details

Defined in Darcs.Repository.Flags

data PatchFormat Source #

Instances

Instances details
Eq PatchFormat Source # 
Instance details

Defined in Darcs.Repository.Flags

Show PatchFormat Source # 
Instance details

Defined in Darcs.Repository.Flags

hashed :: PrimDarcsOption () Source #

Deprecated flag, still present to output an error message.

data TestStrategy Source #

Constructors

Once 
Linear 
Backoff 
Bisect 

Instances

Instances details
Eq TestStrategy Source # 
Instance details

Defined in Darcs.UI.Options.All

Show TestStrategy Source # 
Instance details

Defined in Darcs.UI.Options.All

data EnumPatches Source #

Instances

Instances details
Eq EnumPatches Source # 
Instance details

Defined in Darcs.UI.Options.All

Show EnumPatches Source # 
Instance details

Defined in Darcs.UI.Options.All

YesNo EnumPatches Source # 
Instance details

Defined in Darcs.UI.Options.All

data GzcrcsAction Source #

Constructors

GzcrcsCheck 
GzcrcsRepair 

Instances

Instances details
Eq GzcrcsAction Source # 
Instance details

Defined in Darcs.UI.Options.All

Show GzcrcsAction Source # 
Instance details

Defined in Darcs.UI.Options.All