| Safe Haskell | None |
|---|---|
| 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_ :: forall p b f. Functor f => (Absolute -> f Absolute) -> ProjectPathG p b -> f (ProjectPathG p b)
- path_ :: forall p b f. Functor f => (Path -> f Path) -> ProjectPathG p b -> f (ProjectPathG p b)
- path :: ProjectPathG p b -> Path
- toProjectAndBranch :: ProjectPathG p b -> ProjectAndBranch p b
- projectAndBranch_ :: forall p b p' b' f. Functor f => (ProjectAndBranch p b -> f (ProjectAndBranch p' b')) -> ProjectPathG p b -> f (ProjectPathG 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 {
- projectId :: !ProjectId
- branchId :: !ProjectBranchId
- name :: !ProjectBranchName
- parentBranchId :: !(Maybe ProjectBranchId)
- isMerge :: !Bool
- isUpdate :: !Bool
- isUpgrade :: !Bool
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
absPath_ :: forall p b f. Functor f => (Absolute -> f Absolute) -> ProjectPathG p b -> f (ProjectPathG p b) Source #
path_ :: forall p b f. Functor f => (Path -> f Path) -> ProjectPathG p b -> f (ProjectPathG p b) Source #
path :: ProjectPathG p b -> Path Source #
toProjectAndBranch :: ProjectPathG p b -> ProjectAndBranch p b Source #
projectAndBranch_ :: forall p b p' b' f. Functor f => (ProjectAndBranch p b -> f (ProjectAndBranch p' b')) -> ProjectPathG p b -> f (ProjectPathG 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
| Bifoldable ProjectAndBranch | |||||
Defined in Unison.Core.Project Methods bifold :: Monoid m => ProjectAndBranch m m -> m # bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> ProjectAndBranch a b -> m # bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> ProjectAndBranch a b -> c # bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> ProjectAndBranch a b -> c # | |||||
| Bifunctor ProjectAndBranch | |||||
Defined in Unison.Core.Project Methods bimap :: (a -> b) -> (c -> d) -> ProjectAndBranch a c -> ProjectAndBranch b d # first :: (a -> b) -> ProjectAndBranch a c -> ProjectAndBranch b c # second :: (b -> c) -> ProjectAndBranch a b -> ProjectAndBranch a c # | |||||
| Bitraversable ProjectAndBranch | |||||
Defined in Unison.Core.Project Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> ProjectAndBranch a b -> f (ProjectAndBranch c d) # | |||||
| TryFrom Text (ProjectAndBranch ProjectName ProjectBranchName) | Attempt to parse a project and branch name from a string where both are required. | ||||
Defined in Unison.Project | |||||
| TryFrom Text (ProjectAndBranch ProjectName (Maybe ProjectBranchName)) | |||||
Defined in Unison.Project Methods tryFrom :: Text -> Either (TryFromException Text (ProjectAndBranch ProjectName (Maybe ProjectBranchName))) (ProjectAndBranch ProjectName (Maybe ProjectBranchName)) # | |||||
| TryFrom Text (ProjectAndBranch ProjectName (Maybe ProjectBranchNameOrLatestRelease)) | |||||
Defined in Unison.Project | |||||
| TryFrom Text (ProjectAndBranch (Maybe ProjectName) ProjectBranchName) | |||||
Defined in Unison.Project Methods tryFrom :: Text -> Either (TryFromException Text (ProjectAndBranch (Maybe ProjectName) ProjectBranchName)) (ProjectAndBranch (Maybe ProjectName) ProjectBranchName) # | |||||
| Functor (ProjectAndBranch a) | |||||
Defined in Unison.Core.Project Methods fmap :: (a0 -> b) -> ProjectAndBranch a a0 -> ProjectAndBranch a b # (<$) :: a0 -> ProjectAndBranch a b -> ProjectAndBranch a a0 # | |||||
| Generic (ProjectAndBranch a b) | |||||
Defined in Unison.Core.Project Associated Types
Methods from :: ProjectAndBranch a b -> Rep (ProjectAndBranch a b) x # to :: Rep (ProjectAndBranch a b) x -> ProjectAndBranch a b # | |||||
| (Show a, Show b) => Show (ProjectAndBranch a b) | |||||
Defined in Unison.Core.Project Methods showsPrec :: Int -> ProjectAndBranch a b -> ShowS # show :: ProjectAndBranch a b -> String # showList :: [ProjectAndBranch a b] -> ShowS # | |||||
| (Eq a, Eq b) => Eq (ProjectAndBranch a b) | |||||
Defined in Unison.Core.Project Methods (==) :: ProjectAndBranch a b -> ProjectAndBranch a b -> Bool # (/=) :: ProjectAndBranch a b -> ProjectAndBranch a b -> Bool # | |||||
| From (ProjectAndBranch ProjectName ProjectBranchName) Text | |||||
Defined in Unison.Project Methods from :: ProjectAndBranch ProjectName ProjectBranchName -> Text # | |||||
| From (ProjectAndBranch ProjectName (Maybe ProjectBranchName)) Text |
| ||||
Defined in Unison.Project Methods from :: ProjectAndBranch ProjectName (Maybe ProjectBranchName) -> Text # | |||||
| From (ProjectAndBranch (Maybe ProjectName) ProjectBranchName) Text |
| ||||
Defined in Unison.Project Methods from :: ProjectAndBranch (Maybe ProjectName) ProjectBranchName -> Text # | |||||
| type Rep (ProjectAndBranch a b) | |||||
Defined in Unison.Core.Project type Rep (ProjectAndBranch a b) = D1 ('MetaData "ProjectAndBranch" "Unison.Core.Project" "unison-core-0.0.0-1VWfQyRJkVMKYBxkNy6zmW" 'False) (C1 ('MetaCons "ProjectAndBranch" 'PrefixI 'True) (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "branch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b))) | |||||
A project.
Constructors
| Project | |
Fields
| |
Instances
| Generic Project | |||||
Defined in U.Codebase.Sqlite.Project Associated Types
| |||||
| Show Project | |||||
| Eq Project | |||||
| FromRow Project | |||||
Defined in U.Codebase.Sqlite.Project | |||||
| ToRow Project | |||||
Defined in U.Codebase.Sqlite.Project | |||||
| Pathy ProjectPath Source # | |||||
Defined in Unison.Codebase.ProjectPath Methods ascend :: ProjectPath -> Maybe ProjectPath Source # descend :: ProjectPath -> NameSegment -> ProjectPath Source # prefix :: ProjectPath -> Path -> ProjectPath Source # split :: ProjectPath -> Maybe (Split ProjectPath) Source # unsplit :: Split ProjectPath -> ProjectPath Source # toText :: ProjectPath -> Text Source # | |||||
| From ProjectPath Text Source # | |||||
Defined in Unison.Codebase.ProjectPath Methods 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-8z668DVoopd5Hd4AwRCMd4" '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.
Constructors
| ProjectBranch | |
Fields
| |
Instances
| Generic ProjectBranch | |||||
Defined in U.Codebase.Sqlite.ProjectBranch Associated Types
| |||||
| Show ProjectBranch | |||||
Defined in U.Codebase.Sqlite.ProjectBranch Methods showsPrec :: Int -> ProjectBranch -> ShowS # show :: ProjectBranch -> String # showList :: [ProjectBranch] -> ShowS # | |||||
| Eq ProjectBranch | |||||
Defined in U.Codebase.Sqlite.ProjectBranch Methods (==) :: ProjectBranch -> ProjectBranch -> Bool # (/=) :: ProjectBranch -> ProjectBranch -> Bool # | |||||
| Pathy ProjectPath Source # | |||||
Defined in Unison.Codebase.ProjectPath Methods ascend :: ProjectPath -> Maybe ProjectPath Source # descend :: ProjectPath -> NameSegment -> ProjectPath Source # prefix :: ProjectPath -> Path -> ProjectPath Source # split :: ProjectPath -> Maybe (Split ProjectPath) Source # unsplit :: Split ProjectPath -> ProjectPath Source # toText :: ProjectPath -> Text Source # | |||||
| From ProjectPath Text Source # | |||||
Defined in Unison.Codebase.ProjectPath Methods from :: ProjectPath -> Text # | |||||
| type Rep ProjectBranch | |||||
Defined in U.Codebase.Sqlite.ProjectBranch type Rep ProjectBranch = D1 ('MetaData "ProjectBranch" "U.Codebase.Sqlite.ProjectBranch" "unison-codebase-sqlite-0.0.0-8z668DVoopd5Hd4AwRCMd4" 'False) (C1 ('MetaCons "ProjectBranch" 'PrefixI 'True) ((S1 ('MetaSel ('Just "projectId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectId) :*: (S1 ('MetaSel ('Just "branchId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectBranchId) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 ProjectBranchName))) :*: ((S1 ('MetaSel ('Just "parentBranchId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (Maybe ProjectBranchId)) :*: S1 ('MetaSel ('Just "isMerge") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool)) :*: (S1 ('MetaSel ('Just "isUpdate") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool) :*: S1 ('MetaSel ('Just "isUpgrade") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Bool))))) | |||||