Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- = Old [SyntaxSegment]
- | New [SyntaxSegment]
- | Both [SyntaxSegment]
- | SegmentChange (String, String) (Maybe Element)
- | AnnotationChange String (Maybe Element, Maybe Element)
- 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 :: Branch m -> UnisonHash
- v2CausalBranchToUnisonHash :: CausalBranch m -> UnisonHash
- newtype ProjectBranchNameParam = ProjectBranchNameParam {}
- data TermDiffResponse = TermDiffResponse {}
- data TypeDiffResponse = TypeDiffResponse {}
- type RequiredQueryParam = QueryParam' '[Required, Strict]
Documentation
type HashQualifiedName = Text Source #
type NamespaceFQN = Text Source #
type UnisonName = Text Source #
type UnisonHash = Text Source #
data NamespaceDetails Source #
Instances
data ExactName name ref Source #
A hash qualified name, unlike HashQualified, the hash is required
Instances
exactToHQ' :: ExactName name ShortHash -> HashQualified name Source #
data TermDefinitionDiff Source #
Instances
data TypeDefinitionDiff Source #
Instances
Instances
Generic Suffixify Source # | |
Show Suffixify Source # | |
Eq Suffixify Source # | |
Ord Suffixify Source # | |
Defined in Unison.Server.Types | |
FromHttpApiData Suffixify Source # | |
Defined in Unison.Server.Types parseUrlPiece :: Text -> Either Text Suffixify # parseHeader :: ByteString -> Either Text Suffixify # | |
ToParamSchema Suffixify Source # | |
Defined in Unison.Server.Types toParamSchema :: Proxy Suffixify -> Schema # | |
ToParam (QueryParam "suffixifyBindings" Suffixify) Source # | |
Defined in Unison.Server.Local.Endpoints.GetDefinitions toParam :: Proxy (QueryParam "suffixifyBindings" Suffixify) -> DocQueryParam # | |
type Rep Suffixify Source # | |
Defined in Unison.Server.Types |
data TermDefinition Source #
Instances
data TypeDefinition Source #
Instances
data DefinitionDisplayResults Source #
Instances
Instances
FromJSON TermTag Source # | |
ToJSON TermTag Source # | |
Defined in Unison.Server.Types | |
Generic TermTag Source # | |
Show TermTag Source # | |
Eq TermTag Source # | |
Ord TermTag Source # | |
ToSchema TermTag Source # | |
Defined in Unison.Server.Types | |
type Rep TermTag Source # | |
Defined in Unison.Server.Types type Rep TermTag = D1 ('MetaData "TermTag" "Unison.Server.Types" "unison-share-api-0.0.0-C8EhduMcnIVLJzlEB6yMhH" '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)))) |
data SemanticSyntaxDiff 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).
Old [SyntaxSegment] | |
New [SyntaxSegment] | |
Both [SyntaxSegment] | |
SegmentChange (String, String) (Maybe Element) | |
AnnotationChange String (Maybe Element, Maybe Element) |
Instances
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.
DisplayObjectDiff (DisplayObject [SemanticSyntaxDiff] [SemanticSyntaxDiff]) | |
MismatchedDisplayObjects (DisplayObject SyntaxText SyntaxText) (DisplayObject SyntaxText SyntaxText) |
Instances
Instances
Generic UnisonRef Source # | |
Show UnisonRef Source # | |
Eq UnisonRef Source # | |
Ord UnisonRef Source # | |
Defined in Unison.Server.Types | |
type Rep UnisonRef Source # | |
Defined in Unison.Server.Types type Rep UnisonRef = D1 ('MetaData "UnisonRef" "Unison.Server.Types" "unison-share-api-0.0.0-C8EhduMcnIVLJzlEB6yMhH" '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 #
NamedTerm | |
|
Instances
FromJSON NamedTerm Source # | |
ToJSON NamedTerm Source # | |
Defined in Unison.Server.Types | |
Generic NamedTerm Source # | |
Show NamedTerm Source # | |
Eq NamedTerm Source # | |
Ord NamedTerm Source # | |
Defined in Unison.Server.Types | |
ToSchema NamedTerm Source # | |
Defined in Unison.Server.Types | |
type Rep NamedTerm Source # | |
Defined in Unison.Server.Types type Rep NamedTerm = D1 ('MetaData "NamedTerm" "Unison.Server.Types" "unison-share-api-0.0.0-C8EhduMcnIVLJzlEB6yMhH" '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 # | |
ToJSON NamedType Source # | |
Defined in Unison.Server.Types | |
Generic NamedType Source # | |
Show NamedType Source # | |
Eq NamedType Source # | |
Ord NamedType Source # | |
Defined in Unison.Server.Types | |
ToSchema NamedType Source # | |
Defined in Unison.Server.Types | |
type Rep NamedType Source # | |
Defined in Unison.Server.Types type Rep NamedType = D1 ('MetaData "NamedType" "Unison.Server.Types" "unison-share-api-0.0.0-C8EhduMcnIVLJzlEB6yMhH" '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 :: Branch m -> UnisonHash Source #
newtype ProjectBranchNameParam Source #
Instances
data TermDiffResponse Source #
Instances
data TypeDiffResponse Source #
Instances
type RequiredQueryParam = QueryParam' '[Required, Strict] Source #
Servant utility for a query param that's required, providing a useful error message if it's missing.