Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Unison.Codebase.ProjectPath
Synopsis
- data ProjectPathG proj branch = ProjectPath {}
- type ProjectPathIds = ProjectPathG ProjectId ProjectBranchId
- type ProjectPathNames = ProjectPathG ProjectName ProjectBranchName
- type ProjectPath = ProjectPathG Project ProjectBranch
- fromProjectAndBranch :: ProjectAndBranch Project ProjectBranch -> Absolute -> ProjectPath
- projectBranchRoot :: ProjectAndBranch Project ProjectBranch -> ProjectPath
- toRoot :: ProjectPath -> ProjectPath
- absPath_ :: Lens' (ProjectPathG p b) Absolute
- path_ :: Lens' (ProjectPathG p b) Path
- path :: ProjectPathG p b -> Path
- toProjectAndBranch :: ProjectPathG p b -> ProjectAndBranch p b
- projectAndBranch_ :: Lens (ProjectPathG p b) (ProjectPathG p' b') (ProjectAndBranch p b) (ProjectAndBranch p' b')
- toIds :: ProjectPath -> ProjectPathIds
- toNames :: ProjectPath -> ProjectPathNames
- projectPathParser :: Parser ProjectPathNames
- parseProjectPath :: Text -> Either Text ProjectPathNames
- data ProjectAndBranch a b = ProjectAndBranch {}
- data Project = Project {
- projectId :: !ProjectId
- name :: !ProjectName
- data ProjectBranch = ProjectBranch {}
Documentation
data ProjectPathG proj branch Source #
Constructors
ProjectPath | |
Instances
toRoot :: ProjectPath -> ProjectPath Source #
Discard any path within the project and get the project's root
path :: ProjectPathG p b -> Path Source #
toProjectAndBranch :: ProjectPathG p b -> ProjectAndBranch p b Source #
projectAndBranch_ :: Lens (ProjectPathG p b) (ProjectPathG p' b') (ProjectAndBranch p b) (ProjectAndBranch p' b') Source #
toIds :: ProjectPath -> ProjectPathIds Source #
Project a project context into a project path of just IDs
toNames :: ProjectPath -> ProjectPathNames Source #
Project a project context into a project path of just names
projectPathParser :: Parser ProjectPathNames Source #
Re-exports, this also helps with using dot-notation
data ProjectAndBranch a b #
A generic data structure that contains information about a project and a branch in that project.
Constructors
ProjectAndBranch | |
Instances
A project.
Constructors
Project | |
Fields
|
Instances
data ProjectBranch #
A project branch.
Constructors
ProjectBranch | |
Fields
|