| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Unison.Codebase.Editor.Input
Contents
Synopsis
- data Input
- = AliasManyI [HashQualified (Split Path)] Path'
- | AliasTermI !Bool (HashOrHQ (Split Path')) (Split Path')
- | AliasTypeI !Bool (HashOrHQ (Split Path')) (Split Path')
- | ApiI
- | AuthLoginI
- | BranchI BranchSourceI (ProjectAndBranch (Maybe ProjectName) ProjectBranchName)
- | BranchRenameI ProjectBranchName
- | BranchSquashI (ProjectAndBranch (Maybe ProjectName) ProjectBranchName) (ProjectAndBranch (Maybe ProjectName) ProjectBranchName)
- | BranchesI (Maybe ProjectName)
- | CancelI
- | ClearI
- | CloneI ProjectAndBranchNames (Maybe ProjectAndBranchNames)
- | ConfigSetI ConfigKey Text
- | ConfigGetI ConfigKey
- | CreateAuthorI NameSegment Text
- | CreateMessage (Pretty ColorText)
- | DebugClearWatchI
- | DebugDependentsGraph
- | DebugDoctorI
- | DebugDumpNamespaceSimpleI
- | DebugDumpNamespacesI
- | DebugFormatI
- | DebugFuzzyOptionsI String [String]
- | DebugLSPFoldRangesI
- | DebugLSPNameCompletionI Text
- | DebugNameDiffI ShortCausalHash ShortCausalHash
- | DebugNumberedArgsI
- | DebugSynhashTermI !Name
- | DebugTabCompletionI [String]
- | DebugTermI Bool (HashQualified Name)
- | DebugTypeI (HashQualified Name)
- | DebugTypecheckedUnisonFileI
- | DeleteBranchI (ProjectAndBranch (Maybe ProjectName) ProjectBranchName)
- | DeleteI !Bool !DeleteTarget ![HashQualified Name]
- | DeleteNamespaceI Insistence (Maybe (Split Relative))
- | DeleteProjectI ProjectName
- | DiffBranchI !DiffBranchArg !DiffBranchArg
- | DiffNamespaceI BranchId2 BranchId2
- | DisplayI OutputLocation (NonEmpty (HashQualified Name))
- | DocToMarkdownI Name
- | DocsI (NonEmpty Name)
- | DocsToHtmlI BranchRelativePath FilePath
- | EditDependentsI !(HashQualified Name)
- | EditNamespaceI [Path']
- | ExecuteI ProfileSpec (HashQualified Name) [String]
- | FindI Bool FindScope [String]
- | FindShallowI Path'
- | ForkLocalBranchI (Either ShortCausalHash BranchRelativePath) BranchRelativePath
- | HistoryI (Maybe Int) (Maybe Int) BranchId
- | HistoryCommentI (Maybe BranchId2)
- | IOTestAllI
- | IOTestI (HashQualified Name)
- | LibInstallI !Bool !(ProjectAndBranch ProjectName (Maybe ProjectBranchNameOrLatestRelease))
- | LibInstallLocalI !(ProjectAndBranch ProjectName ProjectBranchName) (Maybe NameSegment)
- | ListDependenciesI (HashQualified Name)
- | ListDependentsI (HashQualified Name)
- | LoadI (Maybe FilePath)
- | MakeStandaloneI String (HashQualified Name)
- | MergeBuiltinsI (Maybe Relative)
- | MergeCommitI
- | MergeI (ProjectAndBranch (Maybe ProjectName) ProjectBranchName)
- | MergeIOBuiltinsI (Maybe Relative)
- | MoveAllI Path' Path'
- | MoveBranchI Path' Path'
- | MoveTermI (HashQualified (Split Path')) (Split Path')
- | MoveTypeI (HashQualified (Split Path')) (Split Path')
- | NamesI IsGlobal [(RawQuery, ErrorMessageOrName)]
- | NamespaceDependenciesI (Maybe Path')
- | PopBranchI
- | ProjectCreateI Bool (Maybe ProjectName)
- | ProjectRenameI ProjectName
- | ProjectSwitchI ProjectAndBranchNames
- | ProjectsI
- | PullI !PullSourceTarget !PullMode
- | PushRemoteBranchI PushRemoteBranchInput
- | QuitI
- | ReleaseDraftI Semver
- | ResetI BranchId2 (Maybe UnresolvedProjectBranch)
- | SaveExecuteResultI Name
- | ShowDefinitionI OutputLocation ShowDefinitionScope (NonEmpty (HashQualified Name))
- | ShowGlobalReflogI
- | ShowProjectBranchReflogI (Maybe (ProjectAndBranch (Maybe ProjectName) ProjectBranchName))
- | ShowProjectReflogI (Maybe ProjectName)
- | ShowRootReflogI
- | StructuredFindI FindScope (HashQualified Name)
- | StructuredFindReplaceI (HashQualified Name)
- | SwitchBranchI Path'
- | SyncFromCodebaseI FilePath (ProjectAndBranch ProjectName ProjectBranchName) UnresolvedProjectBranch
- | SyncFromFileI FilePath UnresolvedProjectBranch
- | SyncToFileI FilePath (ProjectAndBranch (Maybe ProjectName) (Maybe ProjectBranchName))
- | TestI TestInput
- | TextFindI Bool [String]
- | TodoI
- | UiI Path'
- | UndoI
- | UpI
- | Update2I
- | UpdateBuiltinsI
- | UpgradeCommitI
- | UpgradeI ![NameSegment]
- | VersionI
- data BranchSourceI
- data DiffBranchArg
- data PullSourceTarget
- data PushRemoteBranchInput = PushRemoteBranchInput {}
- data PushSourceTarget
- data PushSource = ProjySource (These ProjectName ProjectBranchName)
- data TestInput = TestInput {}
- data Event = UnisonFileChanged SourceName Source
- data OutputLocation
- data RelativeToFold
- data BranchIdG p
- type BranchId = BranchIdG Path'
- type BranchId2 = Either ShortCausalHash BranchRelativePath
- type AbsBranchId = BranchIdG Absolute
- type UnresolvedProjectBranch = ProjectAndBranch (Maybe ProjectName) ProjectBranchName
- parseBranchId :: String -> Either Text BranchId
- parseBranchId2 :: String -> Either (Pretty ColorText) (Either ShortCausalHash BranchRelativePath)
- parseShortCausalHash :: String -> Either String ShortCausalHash
- data Insistence
- data PullMode
- data FindScope
- data ShowDefinitionScope
- type IsGlobal = Bool
- data DeleteTarget
- type ErrorMessageOrName = ErrorMessageOrValue (HashQualified Name)
- type RawQuery = String
Documentation
Constructors
data BranchSourceI Source #
The source of a branch command: what to make the new branch from.
Constructors
| BranchSourceI'CurrentContext | Create a branch from the current context |
| BranchSourceI'Empty | Create an empty branch |
| BranchSourceI'UnresolvedProjectBranch UnresolvedProjectBranch | Create a branch from this other branch |
Instances
| Show BranchSourceI Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> BranchSourceI -> ShowS # show :: BranchSourceI -> String # showList :: [BranchSourceI] -> ShowS # | |
| Eq BranchSourceI Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: BranchSourceI -> BranchSourceI -> Bool # (/=) :: BranchSourceI -> BranchSourceI -> Bool # | |
data DiffBranchArg Source #
Constructors
| DiffBranchArg'Branch !(ProjectAndBranch (Maybe ProjectName) ProjectBranchName) | |
| DiffBranchArg'Hash !ShortCausalHash |
Instances
| Show DiffBranchArg Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> DiffBranchArg -> ShowS # show :: DiffBranchArg -> String # showList :: [DiffBranchArg] -> ShowS # | |
| Eq DiffBranchArg Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: DiffBranchArg -> DiffBranchArg -> Bool # (/=) :: DiffBranchArg -> DiffBranchArg -> Bool # | |
data PullSourceTarget Source #
Pull source and target: either neither is specified, or only a source, or both.
Constructors
Instances
| Show PullSourceTarget Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> PullSourceTarget -> ShowS # show :: PullSourceTarget -> String # showList :: [PullSourceTarget] -> ShowS # | |
| Eq PullSourceTarget Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: PullSourceTarget -> PullSourceTarget -> Bool # (/=) :: PullSourceTarget -> PullSourceTarget -> Bool # | |
data PushRemoteBranchInput Source #
Constructors
| PushRemoteBranchInput | |
Fields | |
Instances
| Show PushRemoteBranchInput Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> PushRemoteBranchInput -> ShowS # show :: PushRemoteBranchInput -> String # showList :: [PushRemoteBranchInput] -> ShowS # | |
| Eq PushRemoteBranchInput Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: PushRemoteBranchInput -> PushRemoteBranchInput -> Bool # (/=) :: PushRemoteBranchInput -> PushRemoteBranchInput -> Bool # | |
data PushSourceTarget Source #
Push source and target: either neither is specified, or only a target, or both.
Constructors
| PushSourceTarget0 | |
| PushSourceTarget1 (These ProjectName ProjectBranchName) | |
| PushSourceTarget2 PushSource (These ProjectName ProjectBranchName) |
Instances
| Show PushSourceTarget Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> PushSourceTarget -> ShowS # show :: PushSourceTarget -> String # showList :: [PushSourceTarget] -> ShowS # | |
| Eq PushSourceTarget Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: PushSourceTarget -> PushSourceTarget -> Bool # (/=) :: PushSourceTarget -> PushSourceTarget -> Bool # | |
data PushSource Source #
Constructors
| ProjySource (These ProjectName ProjectBranchName) |
Instances
| Show PushSource Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> PushSource -> ShowS # show :: PushSource -> String # showList :: [PushSource] -> ShowS # | |
| Eq PushSource Source # | |
Defined in Unison.Codebase.Editor.Input | |
Constructors
| TestInput | |
Fields
| |
Constructors
| UnisonFileChanged SourceName Source |
data OutputLocation Source #
Instances
| Show OutputLocation Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> OutputLocation -> ShowS # show :: OutputLocation -> String # showList :: [OutputLocation] -> ShowS # | |
| Eq OutputLocation Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: OutputLocation -> OutputLocation -> Bool # (/=) :: OutputLocation -> OutputLocation -> Bool # | |
data RelativeToFold Source #
Above a new fold, or within the topmost fold?
Constructors
| AboveFold | |
| WithinFold |
Instances
| Show RelativeToFold Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> RelativeToFold -> ShowS # show :: RelativeToFold -> String # showList :: [RelativeToFold] -> ShowS # | |
| Eq RelativeToFold Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: RelativeToFold -> RelativeToFold -> Bool # (/=) :: RelativeToFold -> RelativeToFold -> Bool # | |
Constructors
| BranchAtSCH ShortCausalHash | |
| BranchAtPath p | |
| BranchAtProjectPath ProjectPath |
Instances
| Foldable BranchIdG Source # | |
Defined in Unison.Codebase.Editor.Input Methods fold :: Monoid m => BranchIdG m -> m # foldMap :: Monoid m => (a -> m) -> BranchIdG a -> m # foldMap' :: Monoid m => (a -> m) -> BranchIdG a -> m # foldr :: (a -> b -> b) -> b -> BranchIdG a -> b # foldr' :: (a -> b -> b) -> b -> BranchIdG a -> b # foldl :: (b -> a -> b) -> b -> BranchIdG a -> b # foldl' :: (b -> a -> b) -> b -> BranchIdG a -> b # foldr1 :: (a -> a -> a) -> BranchIdG a -> a # foldl1 :: (a -> a -> a) -> BranchIdG a -> a # toList :: BranchIdG a -> [a] # length :: BranchIdG a -> Int # elem :: Eq a => a -> BranchIdG a -> Bool # maximum :: Ord a => BranchIdG a -> a # minimum :: Ord a => BranchIdG a -> a # | |
| Traversable BranchIdG Source # | |
Defined in Unison.Codebase.Editor.Input | |
| Functor BranchIdG Source # | |
| Show p => Show (BranchIdG p) Source # | |
| Eq p => Eq (BranchIdG p) Source # | |
| From p Text => From (BranchIdG p) Text Source # | |
Defined in Unison.Codebase.Editor.Input | |
type AbsBranchId = BranchIdG Absolute Source #
type UnresolvedProjectBranch = ProjectAndBranch (Maybe ProjectName) ProjectBranchName Source #
An unambiguous project branch name, use the current project name if not provided.
parseBranchId2 :: String -> Either (Pretty ColorText) (Either ShortCausalHash BranchRelativePath) Source #
data Insistence Source #
Should we force the operation or not?
Instances
| Show Insistence Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> Insistence -> ShowS # show :: Insistence -> String # showList :: [Insistence] -> ShowS # | |
| Eq Insistence Source # | |
Defined in Unison.Codebase.Editor.Input | |
Constructors
| PullWithHistory | |
| PullWithoutHistory |
Constructors
| FindLocal Path' | |
| FindLocalAndDeps Path' | |
| FindGlobal |
data ShowDefinitionScope Source #
Constructors
| ShowDefinitionLocal | |
| ShowDefinitionGlobal |
Instances
| Show ShowDefinitionScope Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> ShowDefinitionScope -> ShowS # show :: ShowDefinitionScope -> String # showList :: [ShowDefinitionScope] -> ShowS # | |
| Eq ShowDefinitionScope Source # | |
Defined in Unison.Codebase.Editor.Input Methods (==) :: ShowDefinitionScope -> ShowDefinitionScope -> Bool # (/=) :: ShowDefinitionScope -> ShowDefinitionScope -> Bool # | |
data DeleteTarget Source #
Instances
| Show DeleteTarget Source # | |
Defined in Unison.Codebase.Editor.Input Methods showsPrec :: Int -> DeleteTarget -> ShowS # show :: DeleteTarget -> String # showList :: [DeleteTarget] -> ShowS # | |
| Eq DeleteTarget Source # | |
Defined in Unison.Codebase.Editor.Input | |
Type aliases
type ErrorMessageOrName = ErrorMessageOrValue (HashQualified Name) Source #