Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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')
- toText :: ProjectPathG Project ProjectBranch -> Text
- 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 #
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.
Instances
A project.
Project | |
|
Instances
Generic Project | |
Show Project | |
Eq Project | |
FromRow Project | |
Defined in U.Codebase.Sqlite.Project | |
ToRow Project | |
Defined in U.Codebase.Sqlite.Project | |
From ProjectPath Text Source # | |
Defined in Unison.Codebase.ProjectPath from :: ProjectPath -> Text # | |
type Rep Project | |
Defined in U.Codebase.Sqlite.Project type Rep Project = D1 ('MetaData "Project" "U.Codebase.Sqlite.Project" "unison-codebase-sqlite-0.0.0-GO3bVQgu5bqI4cVjIguow2" 'False) (C1 ('MetaCons "Project" 'PrefixI 'True) (S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectId) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectName))) |
data ProjectBranch #
A project branch.
ProjectBranch | |
|