unison-parser-typechecker-0.0.0
Safe HaskellSafe-Inferred
LanguageHaskell2010

Unison.Codebase.ProjectPath

Synopsis

Documentation

data ProjectPathG proj branch Source #

Constructors

ProjectPath 

Fields

Instances

Instances details
Bifoldable ProjectPathG Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

bifold :: Monoid m => ProjectPathG m m -> m #

bifoldMap :: Monoid m => (a -> m) -> (b -> m) -> ProjectPathG a b -> m #

bifoldr :: (a -> c -> c) -> (b -> c -> c) -> c -> ProjectPathG a b -> c #

bifoldl :: (c -> a -> c) -> (c -> b -> c) -> c -> ProjectPathG a b -> c #

Bifunctor ProjectPathG Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

bimap :: (a -> b) -> (c -> d) -> ProjectPathG a c -> ProjectPathG b d #

first :: (a -> b) -> ProjectPathG a c -> ProjectPathG b c #

second :: (b -> c) -> ProjectPathG a b -> ProjectPathG a c #

Bitraversable ProjectPathG Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> ProjectPathG a b -> f (ProjectPathG c d) #

From ProjectPath Text Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

from :: ProjectPath -> Text #

From ProjectPathNames Text Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Functor (ProjectPathG proj) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

fmap :: (a -> b) -> ProjectPathG proj a -> ProjectPathG proj b #

(<$) :: a -> ProjectPathG proj b -> ProjectPathG proj a #

Generic (ProjectPathG proj branch) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Associated Types

type Rep (ProjectPathG proj branch) :: Type -> Type #

Methods

from :: ProjectPathG proj branch -> Rep (ProjectPathG proj branch) x #

to :: Rep (ProjectPathG proj branch) x -> ProjectPathG proj branch #

(Show proj, Show branch) => Show (ProjectPathG proj branch) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

showsPrec :: Int -> ProjectPathG proj branch -> ShowS #

show :: ProjectPathG proj branch -> String #

showList :: [ProjectPathG proj branch] -> ShowS #

(Eq proj, Eq branch) => Eq (ProjectPathG proj branch) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

(==) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

(/=) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

(Ord proj, Ord branch) => Ord (ProjectPathG proj branch) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

compare :: ProjectPathG proj branch -> ProjectPathG proj branch -> Ordering #

(<) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

(<=) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

(>) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

(>=) :: ProjectPathG proj branch -> ProjectPathG proj branch -> Bool #

max :: ProjectPathG proj branch -> ProjectPathG proj branch -> ProjectPathG proj branch #

min :: ProjectPathG proj branch -> ProjectPathG proj branch -> ProjectPathG proj branch #

From (ProjectPathG () ProjectBranchName) Text Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

type Rep (ProjectPathG proj branch) Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

type Rep (ProjectPathG proj branch) = D1 ('MetaData "ProjectPathG" "Unison.Codebase.ProjectPath" "unison-parser-typechecker-0.0.0-KNkVGbTXlis2lnVjsRIJUx" 'False) (C1 ('MetaCons "ProjectPath" 'PrefixI 'True) (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 proj) :*: (S1 ('MetaSel ('Just "branch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 branch) :*: S1 ('MetaSel ('Just "absPath") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Absolute))))

toRoot :: ProjectPath -> ProjectPath Source #

Discard any path within the project and get the project's root

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

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 

Fields

Instances

Instances details
Bifoldable ProjectAndBranch 
Instance details

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 
Instance details

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 
Instance details

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 (Maybe ProjectBranchNameOrLatestRelease)) 
Instance details

Defined in Unison.Project

Functor (ProjectAndBranch a) 
Instance details

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) 
Instance details

Defined in Unison.Core.Project

Associated Types

type Rep (ProjectAndBranch a b) :: Type -> Type #

(Show a, Show b) => Show (ProjectAndBranch a b) 
Instance details

Defined in Unison.Core.Project

(Eq a, Eq b) => Eq (ProjectAndBranch a b) 
Instance details

Defined in Unison.Core.Project

type Rep (ProjectAndBranch a b) 
Instance details

Defined in Unison.Core.Project

type Rep (ProjectAndBranch a b) = D1 ('MetaData "ProjectAndBranch" "Unison.Core.Project" "unison-core-0.0.0-7TTEaGpY3e79hYDTKjX5dL" 'False) (C1 ('MetaCons "ProjectAndBranch" 'PrefixI 'True) (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a) :*: S1 ('MetaSel ('Just "branch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 b)))

data Project #

A project.

Constructors

Project 

Instances

Instances details
Generic Project 
Instance details

Defined in U.Codebase.Sqlite.Project

Associated Types

type Rep Project :: Type -> Type #

Methods

from :: Project -> Rep Project x #

to :: Rep Project x -> Project #

Show Project 
Instance details

Defined in U.Codebase.Sqlite.Project

Eq Project 
Instance details

Defined in U.Codebase.Sqlite.Project

Methods

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

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

FromRow Project 
Instance details

Defined in U.Codebase.Sqlite.Project

ToRow Project 
Instance details

Defined in U.Codebase.Sqlite.Project

Methods

toRow :: Project -> [SQLData] #

From ProjectPath Text Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

from :: ProjectPath -> Text #

type Rep Project 
Instance details

Defined in U.Codebase.Sqlite.Project

type Rep Project = D1 ('MetaData "Project" "U.Codebase.Sqlite.Project" "unison-codebase-sqlite-0.0.0-BhjP5rNBqEaCHqYDugbkq9" '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.

Instances

Instances details
Generic ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

Associated Types

type Rep ProjectBranch :: Type -> Type #

Show ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

Eq ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

FromRow ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

ToRow ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

Methods

toRow :: ProjectBranch -> [SQLData] #

From ProjectPath Text Source # 
Instance details

Defined in Unison.Codebase.ProjectPath

Methods

from :: ProjectPath -> Text #

type Rep ProjectBranch 
Instance details

Defined in U.Codebase.Sqlite.ProjectBranch

type Rep ProjectBranch = D1 ('MetaData "ProjectBranch" "U.Codebase.Sqlite.ProjectBranch" "unison-codebase-sqlite-0.0.0-BhjP5rNBqEaCHqYDugbkq9" '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)))))