| Safe Haskell | Safe-Inferred |
|---|---|
| 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 :: Branch m -> UnisonHash
- v2CausalBranchToUnisonHash :: 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
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
exactToHQ' :: ExactName name ShortHash -> HashQualified name Source #
data TermDefinitionDiff Source #
Constructors
| TermDefinitionDiff | |
Fields | |
Instances
data TypeDefinitionDiff Source #
Constructors
| TypeDefinitionDiff | |
Fields | |
Instances
Constructors
| Suffixify | |
Fields
| |
Instances
| Generic Suffixify Source # | |
| 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
data TypeDefinition Source #
Constructors
| TypeDefinition | |
Fields | |
Instances
data DefinitionDisplayResults Source #
Constructors
| DefinitionDisplayResults | |
Instances
Constructors
| Doc | |
| Test | |
| Plain | |
| Constructor TypeTag |
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 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-8GEhFGTHnUTHIRlWc7O5yz" '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 # | |
| ToJSON TypeTag Source # | |
Defined in Unison.Server.Types | |
| Generic TypeTag Source # | |
| 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
Instances
data LinewiseDiff a Source #
Constructors
| LinewiseDiff | |
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.
Constructors
Instances
Constructors
| TypeRef UnisonHash | |
| TermRef UnisonHash |
Instances
| Generic UnisonRef Source # | |
| 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-8GEhFGTHnUTHIRlWc7O5yz" '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
Instances
| FromJSON NamedType Source # | |
| ToJSON NamedType Source # | |
Defined in Unison.Server.Types | |
| Generic NamedType Source # | |
| 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-8GEhFGTHnUTHIRlWc7O5yz" '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 #
Constructors
| ProjectBranchNameParam | |
Instances
data TermDiffResponse Source #
Constructors
| TermDiffResponse | |
Fields | |
Instances
data TypeDiffResponse Source #
Constructors
| TypeDiffResponse | |
Fields | |
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.
data DefinitionNameSearchResult Source #
Constructors
| DefinitionNameSearchResult | |
Fields
| |
Instances
| FromJSON DefinitionNameSearchResult Source # | |
Defined in Unison.Server.Types Methods parseJSON :: Value -> Parser DefinitionNameSearchResult # parseJSONList :: Value -> Parser [DefinitionNameSearchResult] # | |
| 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
data DefinitionSearchResult Source #
Constructors
| DefinitionSearchResult | |
Fields
| |
Instances
data TermSummary Source #
Constructors
| TermSummary | |
Fields | |
Instances
data TypeSummary Source #
Constructors
| TypeSummary | |
Fields | |
Instances
data TermOrTypeSummary Source #
Constructors
| ToTTermSummary TermSummary | |
| ToTTypeSummary TypeSummary |
Instances
data TermOrTypeTag Source #
Constructors
| ToTTermTag TermTag | |
| ToTTypeTag TypeTag |