| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.Server.Types
Synopsis
- type APIHeaders x = Headers '[Header "Cache-Control" String] x
- type APIGet c = Get '[JSON] (APIHeaders c)
- type HashQualifiedName = Text
- type NamespaceFQN = Text
- type Size = Int
- type UnisonName = Text
- type UnisonHash = Text
- data NamespaceDetails = NamespaceDetails {}
- data ExactName name ref = ExactName {}
- exactToHQ :: ExactName name ShortHash -> HashQualified name
- exactToHQ' :: ExactName name ShortHash -> HashQualified name
- data TermDefinitionDiff = TermDefinitionDiff {}
- data TypeDefinitionDiff = TypeDefinitionDiff {}
- newtype Suffixify = Suffixify {
- suffixified :: Bool
- data TermDefinition = TermDefinition {}
- data TypeDefinition = TypeDefinition {}
- data DefinitionDisplayResults = DefinitionDisplayResults {}
- data TermTag
- = Doc
- | Test
- | Plain
- | Constructor TypeTag
- data TypeTag
- data SemanticSyntaxDiff a
- = OnlyThisSide (NonEmpty (Segment a))
- | Both (NonEmpty (Segment a))
- | SegmentChange (Text, Text) (Maybe a)
- | AnnotationChange Text (Maybe a, Maybe a)
- data Changed a
- data LinewiseDiff a = LinewiseDiff {}
- data Paired a
- swapPair :: Paired a -> Paired a
- data DisplayObjectDiff
- data UnisonRef
- unisonRefToText :: UnisonRef -> Text
- data NamedTerm = NamedTerm {}
- data NamedType = NamedType {}
- munge :: Text -> ByteString
- mungeShow :: Show s => s -> ByteString
- mungeString :: String -> ByteString
- defaultWidth :: Width
- discard :: Applicative m => a -> m ()
- mayDefaultWidth :: Maybe Width -> Width
- setCacheControl :: v -> APIHeaders v
- branchToUnisonHash :: forall (m :: Type -> Type). Branch m -> UnisonHash
- v2CausalBranchToUnisonHash :: forall (m :: Type -> Type). CausalBranch m -> UnisonHash
- newtype ProjectBranchNameParam = ProjectBranchNameParam {}
- data TermDiffResponse = TermDiffResponse {}
- data TypeDiffResponse = TypeDiffResponse {}
- type RequiredQueryParam = QueryParam' '[Required, Strict]
- data DefinitionNameSearchResult = DefinitionNameSearchResult {
- token :: Name
- tag :: TermOrTypeTag
- newtype DefinitionSearchResults = DefinitionSearchResults {}
- data DefinitionSearchResult = DefinitionSearchResult {}
- data TermSummary = TermSummary {}
- data TypeSummary = TypeSummary {}
- data TermOrTypeSummary
- data TermOrTypeTag
- newtype BranchRef = BranchRef {
- unBranchRef :: Text
Documentation
type HashQualifiedName = Text Source #
type NamespaceFQN = Text Source #
type UnisonName = Text Source #
type UnisonHash = Text Source #
data NamespaceDetails Source #
Constructors
| NamespaceDetails | |
Instances
data ExactName name ref Source #
A hash qualified name, unlike HashQualified, the hash is required
Instances
| Bifoldable ExactName Source # | |
| Bifunctor ExactName Source # | |
| Bitraversable ExactName Source # | |
Defined in Unison.Server.Types Methods bitraverse :: Applicative f => (a -> f c) -> (b -> f d) -> ExactName a b -> f (ExactName c d) # | |
| ToCapture (Capture "fqn" (ExactName Name ShortHash)) Source # | |
Defined in Unison.Server.Types | |
| ToParam (QueryParam "exact-name" (ExactName Name ShortHash)) Source # | |
Defined in Unison.Server.Types Methods toParam :: Proxy (QueryParam "exact-name" (ExactName Name ShortHash)) -> DocQueryParam # | |
| Functor (ExactName name) Source # | |
| (Show name, Show ref) => Show (ExactName name ref) Source # | |
| (Eq name, Eq ref) => Eq (ExactName name ref) Source # | |
| (Ord name, Ord ref) => Ord (ExactName name ref) Source # | |
Defined in Unison.Server.Types Methods compare :: ExactName name ref -> ExactName name ref -> Ordering # (<) :: ExactName name ref -> ExactName name ref -> Bool # (<=) :: ExactName name ref -> ExactName name ref -> Bool # (>) :: ExactName name ref -> ExactName name ref -> Bool # (>=) :: ExactName name ref -> ExactName name ref -> Bool # max :: ExactName name ref -> ExactName name ref -> ExactName name ref # min :: ExactName name ref -> ExactName name ref -> ExactName name ref # | |
| FromHttpApiData (ExactName Name ShortHash) Source # | |
Defined in Unison.Server.Types | |
| ToParamSchema (ExactName Name ShortHash) Source # | |
Defined in Unison.Server.Types | |
exactToHQ' :: ExactName name ShortHash -> HashQualified name Source #
data TermDefinitionDiff Source #
Constructors
| TermDefinitionDiff | |
Fields | |
Instances
| Generic TermDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TermDefinitionDiff -> Rep TermDefinitionDiff x # to :: Rep TermDefinitionDiff x -> TermDefinitionDiff # | |||||
| Show TermDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermDefinitionDiff -> ShowS # show :: TermDefinitionDiff -> String # showList :: [TermDefinitionDiff] -> ShowS # | |||||
| Eq TermDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # (/=) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # | |||||
| Ord TermDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods compare :: TermDefinitionDiff -> TermDefinitionDiff -> Ordering # (<) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # (<=) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # (>) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # (>=) :: TermDefinitionDiff -> TermDefinitionDiff -> Bool # max :: TermDefinitionDiff -> TermDefinitionDiff -> TermDefinitionDiff # min :: TermDefinitionDiff -> TermDefinitionDiff -> TermDefinitionDiff # | |||||
| type Rep TermDefinitionDiff Source # | |||||
Defined in Unison.Server.Types type Rep TermDefinitionDiff = D1 ('MetaData "TermDefinitionDiff" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TermDefinitionDiff" 'PrefixI 'True) (S1 ('MetaSel ('Just "left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermDefinition) :*: (S1 ('MetaSel ('Just "right") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermDefinition) :*: S1 ('MetaSel ('Just "diff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DisplayObjectDiff)))) | |||||
data TypeDefinitionDiff Source #
Constructors
| TypeDefinitionDiff | |
Fields | |
Instances
| Generic TypeDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TypeDefinitionDiff -> Rep TypeDefinitionDiff x # to :: Rep TypeDefinitionDiff x -> TypeDefinitionDiff # | |||||
| Show TypeDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TypeDefinitionDiff -> ShowS # show :: TypeDefinitionDiff -> String # showList :: [TypeDefinitionDiff] -> ShowS # | |||||
| Eq TypeDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # (/=) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # | |||||
| Ord TypeDefinitionDiff Source # | |||||
Defined in Unison.Server.Types Methods compare :: TypeDefinitionDiff -> TypeDefinitionDiff -> Ordering # (<) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # (<=) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # (>) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # (>=) :: TypeDefinitionDiff -> TypeDefinitionDiff -> Bool # max :: TypeDefinitionDiff -> TypeDefinitionDiff -> TypeDefinitionDiff # min :: TypeDefinitionDiff -> TypeDefinitionDiff -> TypeDefinitionDiff # | |||||
| type Rep TypeDefinitionDiff Source # | |||||
Defined in Unison.Server.Types type Rep TypeDefinitionDiff = D1 ('MetaData "TypeDefinitionDiff" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TypeDefinitionDiff" 'PrefixI 'True) (S1 ('MetaSel ('Just "left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeDefinition) :*: (S1 ('MetaSel ('Just "right") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeDefinition) :*: S1 ('MetaSel ('Just "diff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DisplayObjectDiff)))) | |||||
Constructors
| Suffixify | |
Fields
| |
Instances
| Generic Suffixify Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show Suffixify Source # | |||||
| Eq Suffixify Source # | |||||
| Ord Suffixify Source # | |||||
| FromHttpApiData Suffixify Source # | |||||
Defined in Unison.Server.Types Methods parseUrlPiece :: Text -> Either Text Suffixify # parseHeader :: ByteString -> Either Text Suffixify # | |||||
| ToParamSchema Suffixify Source # | |||||
Defined in Unison.Server.Types Methods toParamSchema :: Proxy Suffixify -> Schema # | |||||
| ToParam (QueryParam "suffixifyBindings" Suffixify) Source # | |||||
Defined in Unison.Server.Local.Endpoints.Definitions Methods toParam :: Proxy (QueryParam "suffixifyBindings" Suffixify) -> DocQueryParam # | |||||
| type Rep Suffixify Source # | |||||
Defined in Unison.Server.Types | |||||
data TermDefinition Source #
Constructors
| TermDefinition | |
Fields | |
Instances
| FromJSON TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TermDefinition # parseJSONList :: Value -> Parser [TermDefinition] # | |||||
| ToJSON TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TermDefinition -> Value # toEncoding :: TermDefinition -> Encoding # toJSONList :: [TermDefinition] -> Value # toEncodingList :: [TermDefinition] -> Encoding # omitField :: TermDefinition -> Bool # | |||||
| Generic TermDefinition Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TermDefinition -> Rep TermDefinition x # to :: Rep TermDefinition x -> TermDefinition # | |||||
| Show TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermDefinition -> ShowS # show :: TermDefinition -> String # showList :: [TermDefinition] -> ShowS # | |||||
| Eq TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TermDefinition -> TermDefinition -> Bool # (/=) :: TermDefinition -> TermDefinition -> Bool # | |||||
| Ord TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods compare :: TermDefinition -> TermDefinition -> Ordering # (<) :: TermDefinition -> TermDefinition -> Bool # (<=) :: TermDefinition -> TermDefinition -> Bool # (>) :: TermDefinition -> TermDefinition -> Bool # (>=) :: TermDefinition -> TermDefinition -> Bool # max :: TermDefinition -> TermDefinition -> TermDefinition # min :: TermDefinition -> TermDefinition -> TermDefinition # | |||||
| ToSchema TermDefinition Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TermDefinition -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep TermDefinition Source # | |||||
Defined in Unison.Server.Types type Rep TermDefinition = D1 ('MetaData "TermDefinition" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TermDefinition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "termNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [HashQualifiedName]) :*: (S1 ('MetaSel ('Just "bestTermName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashQualifiedName) :*: S1 ('MetaSel ('Just "defnTermTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermTag))) :*: (S1 ('MetaSel ('Just "termDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: (S1 ('MetaSel ('Just "signature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 SyntaxText) :*: S1 ('MetaSel ('Just "termDocs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(HashQualifiedName, UnisonHash, Doc)]))))) | |||||
data TypeDefinition Source #
Constructors
| TypeDefinition | |
Fields | |
Instances
| FromJSON TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TypeDefinition # parseJSONList :: Value -> Parser [TypeDefinition] # | |||||
| ToJSON TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TypeDefinition -> Value # toEncoding :: TypeDefinition -> Encoding # toJSONList :: [TypeDefinition] -> Value # toEncodingList :: [TypeDefinition] -> Encoding # omitField :: TypeDefinition -> Bool # | |||||
| Generic TypeDefinition Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TypeDefinition -> Rep TypeDefinition x # to :: Rep TypeDefinition x -> TypeDefinition # | |||||
| Show TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TypeDefinition -> ShowS # show :: TypeDefinition -> String # showList :: [TypeDefinition] -> ShowS # | |||||
| Eq TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TypeDefinition -> TypeDefinition -> Bool # (/=) :: TypeDefinition -> TypeDefinition -> Bool # | |||||
| Ord TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods compare :: TypeDefinition -> TypeDefinition -> Ordering # (<) :: TypeDefinition -> TypeDefinition -> Bool # (<=) :: TypeDefinition -> TypeDefinition -> Bool # (>) :: TypeDefinition -> TypeDefinition -> Bool # (>=) :: TypeDefinition -> TypeDefinition -> Bool # max :: TypeDefinition -> TypeDefinition -> TypeDefinition # min :: TypeDefinition -> TypeDefinition -> TypeDefinition # | |||||
| ToSchema TypeDefinition Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TypeDefinition -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep TypeDefinition Source # | |||||
Defined in Unison.Server.Types type Rep TypeDefinition = D1 ('MetaData "TypeDefinition" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TypeDefinition" 'PrefixI 'True) ((S1 ('MetaSel ('Just "typeNames") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [HashQualifiedName]) :*: S1 ('MetaSel ('Just "bestTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashQualifiedName)) :*: (S1 ('MetaSel ('Just "defnTypeTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeTag) :*: (S1 ('MetaSel ('Just "typeDefinition") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: S1 ('MetaSel ('Just "typeDocs") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [(HashQualifiedName, UnisonHash, Doc)]))))) | |||||
data DefinitionDisplayResults Source #
Constructors
| DefinitionDisplayResults | |
Instances
| FromJSON DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser DefinitionDisplayResults # parseJSONList :: Value -> Parser [DefinitionDisplayResults] # | |||||
| ToJSON DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: DefinitionDisplayResults -> Value # toEncoding :: DefinitionDisplayResults -> Encoding # toJSONList :: [DefinitionDisplayResults] -> Value # | |||||
| Monoid DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types | |||||
| Semigroup DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types | |||||
| Generic DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: DefinitionDisplayResults -> Rep DefinitionDisplayResults x # to :: Rep DefinitionDisplayResults x -> DefinitionDisplayResults # | |||||
| Show DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> DefinitionDisplayResults -> ShowS # show :: DefinitionDisplayResults -> String # showList :: [DefinitionDisplayResults] -> ShowS # | |||||
| Eq DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods (==) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # (/=) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # | |||||
| Ord DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods compare :: DefinitionDisplayResults -> DefinitionDisplayResults -> Ordering # (<) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # (<=) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # (>) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # (>=) :: DefinitionDisplayResults -> DefinitionDisplayResults -> Bool # max :: DefinitionDisplayResults -> DefinitionDisplayResults -> DefinitionDisplayResults # min :: DefinitionDisplayResults -> DefinitionDisplayResults -> DefinitionDisplayResults # | |||||
| ToSchema DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy DefinitionDisplayResults -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Local.Endpoints.Definitions Methods toSamples :: Proxy DefinitionDisplayResults -> [(Text, DefinitionDisplayResults)] # | |||||
| type Rep DefinitionDisplayResults Source # | |||||
Defined in Unison.Server.Types type Rep DefinitionDisplayResults = D1 ('MetaData "DefinitionDisplayResults" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "DefinitionDisplayResults" 'PrefixI 'True) (S1 ('MetaSel ('Just "termDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map UnisonHash TermDefinition)) :*: (S1 ('MetaSel ('Just "typeDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Map UnisonHash TypeDefinition)) :*: S1 ('MetaSel ('Just "missingDefinitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [HashQualifiedName])))) | |||||
Constructors
| Doc | |
| Test | |
| Plain | |
| Constructor TypeTag |
Instances
| FromJSON TermTag Source # | |||||
Defined in Unison.Server.Types | |||||
| ToJSON TermTag Source # | |||||
| Generic TermTag Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show TermTag Source # | |||||
| Eq TermTag Source # | |||||
| Ord TermTag Source # | |||||
| ToSchema TermTag Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TermTag -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep TermTag Source # | |||||
Defined in Unison.Server.Types type Rep TermTag = D1 ('MetaData "TermTag" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) ((C1 ('MetaCons "Doc" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Test" 'PrefixI 'False) (U1 :: Type -> Type)) :+: (C1 ('MetaCons "Plain" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Constructor" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeTag)))) | |||||
Instances
| FromJSON TypeTag Source # | |
Defined in Unison.Server.Types | |
| ToJSON TypeTag Source # | |
| Generic TypeTag Source # | |
Defined in Unison.Server.Types | |
| Show TypeTag Source # | |
| Eq TypeTag Source # | |
| Ord TypeTag Source # | |
| ToSchema TypeTag Source # | |
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TypeTag -> Declare (Definitions Schema) NamedSchema # | |
| type Rep TypeTag Source # | |
data SemanticSyntaxDiff a Source #
A type for semantic diffing of definitions. Includes special-cases for when the name in a definition has changed but the hash hasn't (rename/alias), and when the hash has changed but the name hasn't (update propagation).
Constructors
| OnlyThisSide (NonEmpty (Segment a)) | |
| Both (NonEmpty (Segment a)) | |
| SegmentChange (Text, Text) (Maybe a) | |
| AnnotationChange Text (Maybe a, Maybe a) |
Instances
| FromJSON a => FromJSON (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser (SemanticSyntaxDiff a) # parseJSONList :: Value -> Parser [SemanticSyntaxDiff a] # omittedField :: Maybe (SemanticSyntaxDiff a) # | |||||
| ToJSON a => ToJSON (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: SemanticSyntaxDiff a -> Value # toEncoding :: SemanticSyntaxDiff a -> Encoding # toJSONList :: [SemanticSyntaxDiff a] -> Value # toEncodingList :: [SemanticSyntaxDiff a] -> Encoding # omitField :: SemanticSyntaxDiff a -> Bool # | |||||
| Generic (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: SemanticSyntaxDiff a -> Rep (SemanticSyntaxDiff a) x # to :: Rep (SemanticSyntaxDiff a) x -> SemanticSyntaxDiff a # | |||||
| Show a => Show (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> SemanticSyntaxDiff a -> ShowS # show :: SemanticSyntaxDiff a -> String # showList :: [SemanticSyntaxDiff a] -> ShowS # | |||||
| Eq a => Eq (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods (==) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # (/=) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # | |||||
| Ord a => Ord (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods compare :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Ordering # (<) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # (<=) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # (>) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # (>=) :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> Bool # max :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> SemanticSyntaxDiff a # min :: SemanticSyntaxDiff a -> SemanticSyntaxDiff a -> SemanticSyntaxDiff a # | |||||
| ToSchema a => ToSchema (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy (SemanticSyntaxDiff a) -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep (SemanticSyntaxDiff a) Source # | |||||
Defined in Unison.Server.Types type Rep (SemanticSyntaxDiff a) = D1 ('MetaData "SemanticSyntaxDiff" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) ((C1 ('MetaCons "OnlyThisSide" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Segment a)))) :+: C1 ('MetaCons "Both" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (NonEmpty (Segment a))))) :+: (C1 ('MetaCons "SegmentChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Text, Text)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a))) :+: C1 ('MetaCons "AnnotationChange" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe a, Maybe a))))) | |||||
Instances
| Functor Changed Source # | |||||
| Foldable Changed Source # | |||||
Defined in Unison.Server.Types Methods fold :: Monoid m => Changed m -> m # foldMap :: Monoid m => (a -> m) -> Changed a -> m # foldMap' :: Monoid m => (a -> m) -> Changed a -> m # foldr :: (a -> b -> b) -> b -> Changed a -> b # foldr' :: (a -> b -> b) -> b -> Changed a -> b # foldl :: (b -> a -> b) -> b -> Changed a -> b # foldl' :: (b -> a -> b) -> b -> Changed a -> b # foldr1 :: (a -> a -> a) -> Changed a -> a # foldl1 :: (a -> a -> a) -> Changed a -> a # elem :: Eq a => a -> Changed a -> Bool # maximum :: Ord a => Changed a -> a # minimum :: Ord a => Changed a -> a # | |||||
| Traversable Changed Source # | |||||
| FromJSON a => FromJSON (Changed a) Source # | |||||
Defined in Unison.Server.Types | |||||
| ToJSON a => ToJSON (Changed a) Source # | |||||
| Generic (Changed a) Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show a => Show (Changed a) Source # | |||||
| Eq a => Eq (Changed a) Source # | |||||
| Ord a => Ord (Changed a) Source # | |||||
| ToSchema a => ToSchema (Changed a) Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy (Changed a) -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep (Changed a) Source # | |||||
Defined in Unison.Server.Types type Rep (Changed a) = D1 ('MetaData "Changed" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "Changed" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: (C1 ('MetaCons "Unchanged" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 a)) :+: C1 ('MetaCons "Spacer" 'PrefixI 'False) (U1 :: Type -> Type))) | |||||
data LinewiseDiff a Source #
Constructors
| LinewiseDiff | |
Instances
| Functor LinewiseDiff Source # | |||||
Defined in Unison.Server.Types Methods fmap :: (a -> b) -> LinewiseDiff a -> LinewiseDiff b # (<$) :: a -> LinewiseDiff b -> LinewiseDiff a # | |||||
| Foldable LinewiseDiff Source # | |||||
Defined in Unison.Server.Types Methods fold :: Monoid m => LinewiseDiff m -> m # foldMap :: Monoid m => (a -> m) -> LinewiseDiff a -> m # foldMap' :: Monoid m => (a -> m) -> LinewiseDiff a -> m # foldr :: (a -> b -> b) -> b -> LinewiseDiff a -> b # foldr' :: (a -> b -> b) -> b -> LinewiseDiff a -> b # foldl :: (b -> a -> b) -> b -> LinewiseDiff a -> b # foldl' :: (b -> a -> b) -> b -> LinewiseDiff a -> b # foldr1 :: (a -> a -> a) -> LinewiseDiff a -> a # foldl1 :: (a -> a -> a) -> LinewiseDiff a -> a # toList :: LinewiseDiff a -> [a] # null :: LinewiseDiff a -> Bool # length :: LinewiseDiff a -> Int # elem :: Eq a => a -> LinewiseDiff a -> Bool # maximum :: Ord a => LinewiseDiff a -> a # minimum :: Ord a => LinewiseDiff a -> a # sum :: Num a => LinewiseDiff a -> a # product :: Num a => LinewiseDiff a -> a # | |||||
| Traversable LinewiseDiff Source # | |||||
Defined in Unison.Server.Types Methods traverse :: Applicative f => (a -> f b) -> LinewiseDiff a -> f (LinewiseDiff b) # sequenceA :: Applicative f => LinewiseDiff (f a) -> f (LinewiseDiff a) # mapM :: Monad m => (a -> m b) -> LinewiseDiff a -> m (LinewiseDiff b) # sequence :: Monad m => LinewiseDiff (m a) -> m (LinewiseDiff a) # | |||||
| FromJSON a => FromJSON (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser (LinewiseDiff a) # parseJSONList :: Value -> Parser [LinewiseDiff a] # omittedField :: Maybe (LinewiseDiff a) # | |||||
| ToJSON a => ToJSON (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: LinewiseDiff a -> Value # toEncoding :: LinewiseDiff a -> Encoding # toJSONList :: [LinewiseDiff a] -> Value # toEncodingList :: [LinewiseDiff a] -> Encoding # omitField :: LinewiseDiff a -> Bool # | |||||
| Generic (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: LinewiseDiff a -> Rep (LinewiseDiff a) x # to :: Rep (LinewiseDiff a) x -> LinewiseDiff a # | |||||
| Show a => Show (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> LinewiseDiff a -> ShowS # show :: LinewiseDiff a -> String # showList :: [LinewiseDiff a] -> ShowS # | |||||
| Eq a => Eq (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods (==) :: LinewiseDiff a -> LinewiseDiff a -> Bool # (/=) :: LinewiseDiff a -> LinewiseDiff a -> Bool # | |||||
| Ord a => Ord (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods compare :: LinewiseDiff a -> LinewiseDiff a -> Ordering # (<) :: LinewiseDiff a -> LinewiseDiff a -> Bool # (<=) :: LinewiseDiff a -> LinewiseDiff a -> Bool # (>) :: LinewiseDiff a -> LinewiseDiff a -> Bool # (>=) :: LinewiseDiff a -> LinewiseDiff a -> Bool # max :: LinewiseDiff a -> LinewiseDiff a -> LinewiseDiff a # min :: LinewiseDiff a -> LinewiseDiff a -> LinewiseDiff a # | |||||
| ToSchema a => ToSchema (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy (LinewiseDiff a) -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep (LinewiseDiff a) Source # | |||||
Defined in Unison.Server.Types type Rep (LinewiseDiff a) = D1 ('MetaData "LinewiseDiff" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "LinewiseDiff" 'PrefixI 'True) (S1 ('MetaSel ('Just "lhsLines") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Changed [a]]) :*: S1 ('MetaSel ('Just "rhsLines") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Changed [a]]))) | |||||
data DisplayObjectDiff Source #
A diff of the syntax of a term or type
It doesn't make sense to diff builtins with ABTs, so in that case we just provide the undiffed syntax.
Constructors
| DisplayObjectDiff (DisplayObject (LinewiseDiff (SemanticSyntaxDiff Element)) (LinewiseDiff (SemanticSyntaxDiff Element))) | |
| MismatchedDisplayObjects (DisplayObject SyntaxText SyntaxText) (DisplayObject SyntaxText SyntaxText) |
Instances
| Generic DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: DisplayObjectDiff -> Rep DisplayObjectDiff x # to :: Rep DisplayObjectDiff x -> DisplayObjectDiff # | |||||
| Show DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> DisplayObjectDiff -> ShowS # show :: DisplayObjectDiff -> String # showList :: [DisplayObjectDiff] -> ShowS # | |||||
| Eq DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types Methods (==) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # (/=) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # | |||||
| Ord DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types Methods compare :: DisplayObjectDiff -> DisplayObjectDiff -> Ordering # (<) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # (<=) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # (>) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # (>=) :: DisplayObjectDiff -> DisplayObjectDiff -> Bool # max :: DisplayObjectDiff -> DisplayObjectDiff -> DisplayObjectDiff # min :: DisplayObjectDiff -> DisplayObjectDiff -> DisplayObjectDiff # | |||||
| ToSchema DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy DisplayObjectDiff -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep DisplayObjectDiff Source # | |||||
Defined in Unison.Server.Types type Rep DisplayObjectDiff = D1 ('MetaData "DisplayObjectDiff" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "DisplayObjectDiff" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject (LinewiseDiff (SemanticSyntaxDiff Element)) (LinewiseDiff (SemanticSyntaxDiff Element))))) :+: C1 ('MetaCons "MismatchedDisplayObjects" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)))) | |||||
Constructors
| TypeRef UnisonHash | |
| TermRef UnisonHash |
Instances
| Generic UnisonRef Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show UnisonRef Source # | |||||
| Eq UnisonRef Source # | |||||
| Ord UnisonRef Source # | |||||
| type Rep UnisonRef Source # | |||||
Defined in Unison.Server.Types type Rep UnisonRef = D1 ('MetaData "UnisonRef" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TypeRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnisonHash)) :+: C1 ('MetaCons "TermRef" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 UnisonHash))) | |||||
unisonRefToText :: UnisonRef -> Text Source #
Constructors
| NamedTerm | |
Fields
| |
Instances
| FromJSON NamedTerm Source # | |||||
Defined in Unison.Server.Types | |||||
| ToJSON NamedTerm Source # | |||||
| Generic NamedTerm Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show NamedTerm Source # | |||||
| Eq NamedTerm Source # | |||||
| Ord NamedTerm Source # | |||||
| ToSchema NamedTerm Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy NamedTerm -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep NamedTerm Source # | |||||
Defined in Unison.Server.Types type Rep NamedTerm = D1 ('MetaData "NamedTerm" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "NamedTerm" 'PrefixI 'True) ((S1 ('MetaSel ('Just "termName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashQualified Name)) :*: S1 ('MetaSel ('Just "termHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortHash)) :*: (S1 ('MetaSel ('Just "termType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe SyntaxText)) :*: S1 ('MetaSel ('Just "termTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermTag)))) | |||||
Instances
| FromJSON NamedType Source # | |||||
Defined in Unison.Server.Types | |||||
| ToJSON NamedType Source # | |||||
| Generic NamedType Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show NamedType Source # | |||||
| Eq NamedType Source # | |||||
| Ord NamedType Source # | |||||
| ToSchema NamedType Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy NamedType -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep NamedType Source # | |||||
Defined in Unison.Server.Types type Rep NamedType = D1 ('MetaData "NamedType" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "NamedType" 'PrefixI 'True) (S1 ('MetaSel ('Just "typeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashQualified Name)) :*: (S1 ('MetaSel ('Just "typeHash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortHash) :*: S1 ('MetaSel ('Just "typeTag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeTag)))) | |||||
munge :: Text -> ByteString Source #
mungeShow :: Show s => s -> ByteString Source #
mungeString :: String -> ByteString Source #
defaultWidth :: Width Source #
discard :: Applicative m => a -> m () Source #
setCacheControl :: v -> APIHeaders v Source #
branchToUnisonHash :: forall (m :: Type -> Type). Branch m -> UnisonHash Source #
v2CausalBranchToUnisonHash :: forall (m :: Type -> Type). CausalBranch m -> UnisonHash Source #
newtype ProjectBranchNameParam Source #
Constructors
| ProjectBranchNameParam | |
Instances
| Generic ProjectBranchNameParam Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: ProjectBranchNameParam -> Rep ProjectBranchNameParam x # to :: Rep ProjectBranchNameParam x -> ProjectBranchNameParam # | |||||
| Show ProjectBranchNameParam Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> ProjectBranchNameParam -> ShowS # show :: ProjectBranchNameParam -> String # showList :: [ProjectBranchNameParam] -> ShowS # | |||||
| Eq ProjectBranchNameParam Source # | |||||
Defined in Unison.Server.Types Methods (==) :: ProjectBranchNameParam -> ProjectBranchNameParam -> Bool # (/=) :: ProjectBranchNameParam -> ProjectBranchNameParam -> Bool # | |||||
| FromHttpApiData ProjectBranchNameParam Source # | Parses URL escaped project and branch names, e.g. ` | ||||
Defined in Unison.Server.Types Methods parseUrlPiece :: Text -> Either Text ProjectBranchNameParam # parseHeader :: ByteString -> Either Text ProjectBranchNameParam # parseQueryParam :: Text -> Either Text ProjectBranchNameParam # | |||||
| ToParamSchema ProjectBranchNameParam Source # | |||||
Defined in Unison.Server.Types Methods | |||||
| ToCapture (Capture "project-and-branch" ProjectBranchNameParam) Source # | |||||
Defined in Unison.Server.Types Methods toCapture :: Proxy (Capture "project-and-branch" ProjectBranchNameParam) -> DocCapture # | |||||
| ToParam (QueryParam "project-and-branch" ProjectBranchNameParam) Source # | |||||
Defined in Unison.Server.Types Methods toParam :: Proxy (QueryParam "project-and-branch" ProjectBranchNameParam) -> DocQueryParam # | |||||
| type Rep ProjectBranchNameParam Source # | |||||
Defined in Unison.Server.Types type Rep ProjectBranchNameParam = D1 ('MetaData "ProjectBranchNameParam" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'True) (C1 ('MetaCons "ProjectBranchNameParam" 'PrefixI 'True) (S1 ('MetaSel ('Just "unProjectBranchNameParam") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (ProjectAndBranch ProjectName ProjectBranchName)))) | |||||
data TermDiffResponse Source #
Constructors
| TermDiffResponse | |
Fields | |
Instances
| FromJSON TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TermDiffResponse # parseJSONList :: Value -> Parser [TermDiffResponse] # | |||||
| ToJSON TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TermDiffResponse -> Value # toEncoding :: TermDiffResponse -> Encoding # toJSONList :: [TermDiffResponse] -> Value # toEncodingList :: [TermDiffResponse] -> Encoding # omitField :: TermDiffResponse -> Bool # | |||||
| Generic TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TermDiffResponse -> Rep TermDiffResponse x # to :: Rep TermDiffResponse x -> TermDiffResponse # | |||||
| Show TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermDiffResponse -> ShowS # show :: TermDiffResponse -> String # showList :: [TermDiffResponse] -> ShowS # | |||||
| Eq TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TermDiffResponse -> TermDiffResponse -> Bool # (/=) :: TermDiffResponse -> TermDiffResponse -> Bool # | |||||
| Ord TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods compare :: TermDiffResponse -> TermDiffResponse -> Ordering # (<) :: TermDiffResponse -> TermDiffResponse -> Bool # (<=) :: TermDiffResponse -> TermDiffResponse -> Bool # (>) :: TermDiffResponse -> TermDiffResponse -> Bool # (>=) :: TermDiffResponse -> TermDiffResponse -> Bool # max :: TermDiffResponse -> TermDiffResponse -> TermDiffResponse # min :: TermDiffResponse -> TermDiffResponse -> TermDiffResponse # | |||||
| ToSchema TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TermDiffResponse -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample TermDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods toSamples :: Proxy TermDiffResponse -> [(Text, TermDiffResponse)] # | |||||
| type Rep TermDiffResponse Source # | |||||
Defined in Unison.Server.Types type Rep TermDiffResponse = D1 ('MetaData "TermDiffResponse" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TermDiffResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectName) :*: (S1 ('MetaSel ('Just "oldBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectBranchName) :*: S1 ('MetaSel ('Just "newBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectBranchName))) :*: (S1 ('MetaSel ('Just "oldTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermDefinition) :*: (S1 ('MetaSel ('Just "newTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermDefinition) :*: S1 ('MetaSel ('Just "diff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DisplayObjectDiff))))) | |||||
data TypeDiffResponse Source #
Constructors
| TypeDiffResponse | |
Fields | |
Instances
| FromJSON TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TypeDiffResponse # parseJSONList :: Value -> Parser [TypeDiffResponse] # | |||||
| ToJSON TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TypeDiffResponse -> Value # toEncoding :: TypeDiffResponse -> Encoding # toJSONList :: [TypeDiffResponse] -> Value # toEncodingList :: [TypeDiffResponse] -> Encoding # omitField :: TypeDiffResponse -> Bool # | |||||
| Generic TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TypeDiffResponse -> Rep TypeDiffResponse x # to :: Rep TypeDiffResponse x -> TypeDiffResponse # | |||||
| Show TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TypeDiffResponse -> ShowS # show :: TypeDiffResponse -> String # showList :: [TypeDiffResponse] -> ShowS # | |||||
| Eq TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TypeDiffResponse -> TypeDiffResponse -> Bool # (/=) :: TypeDiffResponse -> TypeDiffResponse -> Bool # | |||||
| Ord TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods compare :: TypeDiffResponse -> TypeDiffResponse -> Ordering # (<) :: TypeDiffResponse -> TypeDiffResponse -> Bool # (<=) :: TypeDiffResponse -> TypeDiffResponse -> Bool # (>) :: TypeDiffResponse -> TypeDiffResponse -> Bool # (>=) :: TypeDiffResponse -> TypeDiffResponse -> Bool # max :: TypeDiffResponse -> TypeDiffResponse -> TypeDiffResponse # min :: TypeDiffResponse -> TypeDiffResponse -> TypeDiffResponse # | |||||
| ToSchema TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TypeDiffResponse -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types Methods toSamples :: Proxy TypeDiffResponse -> [(Text, TypeDiffResponse)] # | |||||
| type Rep TypeDiffResponse Source # | |||||
Defined in Unison.Server.Types type Rep TypeDiffResponse = D1 ('MetaData "TypeDiffResponse" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TypeDiffResponse" 'PrefixI 'True) ((S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectName) :*: (S1 ('MetaSel ('Just "oldBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectBranchName) :*: S1 ('MetaSel ('Just "newBranch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectBranchName))) :*: (S1 ('MetaSel ('Just "oldType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeDefinition) :*: (S1 ('MetaSel ('Just "newType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeDefinition) :*: S1 ('MetaSel ('Just "diff") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 DisplayObjectDiff))))) | |||||
type RequiredQueryParam = QueryParam' '[Required, Strict] Source #
Servant utility for a query param that's required, providing a useful error message if it's missing.
data DefinitionNameSearchResult Source #
Constructors
| DefinitionNameSearchResult | |
Fields
| |
Instances
| FromJSON DefinitionNameSearchResult Source # | |
Defined in Unison.Server.Types | |
| ToJSON DefinitionNameSearchResult Source # | |
Defined in Unison.Server.Types Methods toJSON :: DefinitionNameSearchResult -> Value # toEncoding :: DefinitionNameSearchResult -> Encoding # toJSONList :: [DefinitionNameSearchResult] -> Value # toEncodingList :: [DefinitionNameSearchResult] -> Encoding # | |
newtype DefinitionSearchResults Source #
Constructors
| DefinitionSearchResults | |
Fields | |
Instances
| FromJSON DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser DefinitionSearchResults # parseJSONList :: Value -> Parser [DefinitionSearchResults] # | |||||
| ToJSON DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: DefinitionSearchResults -> Value # toEncoding :: DefinitionSearchResults -> Encoding # toJSONList :: [DefinitionSearchResults] -> Value # | |||||
| Generic DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: DefinitionSearchResults -> Rep DefinitionSearchResults x # to :: Rep DefinitionSearchResults x -> DefinitionSearchResults # | |||||
| Show DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> DefinitionSearchResults -> ShowS # show :: DefinitionSearchResults -> String # showList :: [DefinitionSearchResults] -> ShowS # | |||||
| Eq DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods (==) :: DefinitionSearchResults -> DefinitionSearchResults -> Bool # (/=) :: DefinitionSearchResults -> DefinitionSearchResults -> Bool # | |||||
| ToSchema DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy DefinitionSearchResults -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types Methods toSamples :: Proxy DefinitionSearchResults -> [(Text, DefinitionSearchResults)] # | |||||
| type Rep DefinitionSearchResults Source # | |||||
Defined in Unison.Server.Types type Rep DefinitionSearchResults = D1 ('MetaData "DefinitionSearchResults" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'True) (C1 ('MetaCons "DefinitionSearchResults" 'PrefixI 'True) (S1 ('MetaSel ('Just "results") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [DefinitionSearchResult]))) | |||||
data DefinitionSearchResult Source #
Constructors
| DefinitionSearchResult | |
Fields
| |
Instances
| FromJSON DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser DefinitionSearchResult # parseJSONList :: Value -> Parser [DefinitionSearchResult] # | |||||
| ToJSON DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: DefinitionSearchResult -> Value # toEncoding :: DefinitionSearchResult -> Encoding # toJSONList :: [DefinitionSearchResult] -> Value # toEncodingList :: [DefinitionSearchResult] -> Encoding # omitField :: DefinitionSearchResult -> Bool # | |||||
| Generic DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: DefinitionSearchResult -> Rep DefinitionSearchResult x # to :: Rep DefinitionSearchResult x -> DefinitionSearchResult # | |||||
| Show DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> DefinitionSearchResult -> ShowS # show :: DefinitionSearchResult -> String # showList :: [DefinitionSearchResult] -> ShowS # | |||||
| Eq DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Methods (==) :: DefinitionSearchResult -> DefinitionSearchResult -> Bool # (/=) :: DefinitionSearchResult -> DefinitionSearchResult -> Bool # | |||||
| ToSchema DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy DefinitionSearchResult -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep DefinitionSearchResult Source # | |||||
Defined in Unison.Server.Types type Rep DefinitionSearchResult = D1 ('MetaData "DefinitionSearchResult" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "DefinitionSearchResult" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fqn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Name) :*: S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermOrTypeSummary)) :*: (S1 ('MetaSel ('Just "project") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectName) :*: S1 ('MetaSel ('Just "branchRef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ProjectBranchName)))) | |||||
data TermSummary Source #
Constructors
| TermSummary | |
Fields | |
Instances
| ToJSON TermSummary Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TermSummary -> Value # toEncoding :: TermSummary -> Encoding # toJSONList :: [TermSummary] -> Value # toEncodingList :: [TermSummary] -> Encoding # omitField :: TermSummary -> Bool # | |||||
| Generic TermSummary Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show TermSummary Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermSummary -> ShowS # show :: TermSummary -> String # showList :: [TermSummary] -> ShowS # | |||||
| Eq TermSummary Source # | |||||
Defined in Unison.Server.Types | |||||
| Ord TermSummary Source # | |||||
Defined in Unison.Server.Types Methods compare :: TermSummary -> TermSummary -> Ordering # (<) :: TermSummary -> TermSummary -> Bool # (<=) :: TermSummary -> TermSummary -> Bool # (>) :: TermSummary -> TermSummary -> Bool # (>=) :: TermSummary -> TermSummary -> Bool # max :: TermSummary -> TermSummary -> TermSummary # min :: TermSummary -> TermSummary -> TermSummary # | |||||
| ToSchema TermSummary Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TermSummary -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample TermSummary Source # | |||||
Defined in Unison.Server.Types Methods toSamples :: Proxy TermSummary -> [(Text, TermSummary)] # | |||||
| type Rep TermSummary Source # | |||||
Defined in Unison.Server.Types type Rep TermSummary = D1 ('MetaData "TermSummary" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TermSummary" 'PrefixI 'True) ((S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashQualified Name)) :*: S1 ('MetaSel ('Just "hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortHash)) :*: (S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: S1 ('MetaSel ('Just "tag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermTag)))) | |||||
data TypeSummary Source #
Constructors
| TypeSummary | |
Fields | |
Instances
| ToJSON TypeSummary Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TypeSummary -> Value # toEncoding :: TypeSummary -> Encoding # toJSONList :: [TypeSummary] -> Value # toEncodingList :: [TypeSummary] -> Encoding # omitField :: TypeSummary -> Bool # | |||||
| Generic TypeSummary Source # | |||||
Defined in Unison.Server.Types Associated Types
| |||||
| Show TypeSummary Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TypeSummary -> ShowS # show :: TypeSummary -> String # showList :: [TypeSummary] -> ShowS # | |||||
| Eq TypeSummary Source # | |||||
Defined in Unison.Server.Types | |||||
| Ord TypeSummary Source # | |||||
Defined in Unison.Server.Types Methods compare :: TypeSummary -> TypeSummary -> Ordering # (<) :: TypeSummary -> TypeSummary -> Bool # (<=) :: TypeSummary -> TypeSummary -> Bool # (>) :: TypeSummary -> TypeSummary -> Bool # (>=) :: TypeSummary -> TypeSummary -> Bool # max :: TypeSummary -> TypeSummary -> TypeSummary # min :: TypeSummary -> TypeSummary -> TypeSummary # | |||||
| ToSchema TypeSummary Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TypeSummary -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample TypeSummary Source # | |||||
Defined in Unison.Server.Types Methods toSamples :: Proxy TypeSummary -> [(Text, TypeSummary)] # | |||||
| type Rep TypeSummary Source # | |||||
Defined in Unison.Server.Types type Rep TypeSummary = D1 ('MetaData "TypeSummary" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "TypeSummary" 'PrefixI 'True) ((S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (HashQualified Name)) :*: S1 ('MetaSel ('Just "hash") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ShortHash)) :*: (S1 ('MetaSel ('Just "summary") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: S1 ('MetaSel ('Just "tag") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeTag)))) | |||||
data TermOrTypeSummary Source #
Constructors
| ToTTermSummary TermSummary | |
| ToTTypeSummary TypeSummary |
Instances
| FromJSON TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TermOrTypeSummary # parseJSONList :: Value -> Parser [TermOrTypeSummary] # | |||||
| ToJSON TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods toJSON :: TermOrTypeSummary -> Value # toEncoding :: TermOrTypeSummary -> Encoding # toJSONList :: [TermOrTypeSummary] -> Value # toEncodingList :: [TermOrTypeSummary] -> Encoding # omitField :: TermOrTypeSummary -> Bool # | |||||
| Generic TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Associated Types
Methods from :: TermOrTypeSummary -> Rep TermOrTypeSummary x # to :: Rep TermOrTypeSummary x -> TermOrTypeSummary # | |||||
| Show TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermOrTypeSummary -> ShowS # show :: TermOrTypeSummary -> String # showList :: [TermOrTypeSummary] -> ShowS # | |||||
| Eq TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods (==) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # (/=) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # | |||||
| Ord TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods compare :: TermOrTypeSummary -> TermOrTypeSummary -> Ordering # (<) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # (<=) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # (>) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # (>=) :: TermOrTypeSummary -> TermOrTypeSummary -> Bool # max :: TermOrTypeSummary -> TermOrTypeSummary -> TermOrTypeSummary # min :: TermOrTypeSummary -> TermOrTypeSummary -> TermOrTypeSummary # | |||||
| ToSchema TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types Methods declareNamedSchema :: Proxy TermOrTypeSummary -> Declare (Definitions Schema) NamedSchema # | |||||
| type Rep TermOrTypeSummary Source # | |||||
Defined in Unison.Server.Types type Rep TermOrTypeSummary = D1 ('MetaData "TermOrTypeSummary" "Unison.Server.Types" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "ToTTermSummary" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TermSummary)) :+: C1 ('MetaCons "ToTTypeSummary" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 TypeSummary))) | |||||
data TermOrTypeTag Source #
Constructors
| ToTTermTag TermTag | |
| ToTTypeTag TypeTag |
Instances
| FromJSON TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser TermOrTypeTag # parseJSONList :: Value -> Parser [TermOrTypeTag] # | |
| ToJSON TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods toJSON :: TermOrTypeTag -> Value # toEncoding :: TermOrTypeTag -> Encoding # toJSONList :: [TermOrTypeTag] -> Value # toEncodingList :: [TermOrTypeTag] -> Encoding # omitField :: TermOrTypeTag -> Bool # | |
| Show TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods showsPrec :: Int -> TermOrTypeTag -> ShowS # show :: TermOrTypeTag -> String # showList :: [TermOrTypeTag] -> ShowS # | |
| Eq TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods (==) :: TermOrTypeTag -> TermOrTypeTag -> Bool # (/=) :: TermOrTypeTag -> TermOrTypeTag -> Bool # | |
| Ord TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods compare :: TermOrTypeTag -> TermOrTypeTag -> Ordering # (<) :: TermOrTypeTag -> TermOrTypeTag -> Bool # (<=) :: TermOrTypeTag -> TermOrTypeTag -> Bool # (>) :: TermOrTypeTag -> TermOrTypeTag -> Bool # (>=) :: TermOrTypeTag -> TermOrTypeTag -> Bool # max :: TermOrTypeTag -> TermOrTypeTag -> TermOrTypeTag # min :: TermOrTypeTag -> TermOrTypeTag -> TermOrTypeTag # | |
| FromHttpApiData TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods parseUrlPiece :: Text -> Either Text TermOrTypeTag # parseHeader :: ByteString -> Either Text TermOrTypeTag # parseQueryParam :: Text -> Either Text TermOrTypeTag # | |
| ToHttpApiData TermOrTypeTag Source # | |
Defined in Unison.Server.Types Methods toUrlPiece :: TermOrTypeTag -> Text # toEncodedUrlPiece :: TermOrTypeTag -> Builder # toHeader :: TermOrTypeTag -> ByteString # toQueryParam :: TermOrTypeTag -> Text # | |
Constructors
| BranchRef | |
Fields
| |
Instances
| FromJSON BranchRef Source # | |
Defined in Unison.Server.Types | |
| ToJSON BranchRef Source # | |
| Show BranchRef Source # | |
| Eq BranchRef Source # | |
| Ord BranchRef Source # | |
| FromHttpApiData BranchRef Source # | |
Defined in Unison.Server.Types Methods parseUrlPiece :: Text -> Either Text BranchRef # parseHeader :: ByteString -> Either Text BranchRef # | |
| ToHttpApiData BranchRef Source # | |
Defined in Unison.Server.Types Methods toUrlPiece :: BranchRef -> Text # toEncodedUrlPiece :: BranchRef -> Builder # toHeader :: BranchRef -> ByteString # toQueryParam :: BranchRef -> Text # toEncodedQueryParam :: BranchRef -> Builder # | |
| Serialise BranchRef Source # | |
| From (ProjectAndBranch ProjectName ProjectBranchName) BranchRef Source # | |
Defined in Unison.Server.Types Methods from :: ProjectAndBranch ProjectName ProjectBranchName -> BranchRef # | |