| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Unison.Server.Local.Endpoints.DefinitionSummary
Documentation
type TermSummaryAPI = "definitions" :> ("terms" :> ("by-hash" :> (Capture "hash" Referent :> ("summary" :> (QueryParam "name" Name :> (QueryParam "relativeTo" Path :> (QueryParam "renderWidth" Width :> APIGet TermSummary))))))) Source #
serveTermSummary :: Codebase IO Symbol Ann -> Referent -> Maybe Name -> Either ShortCausalHash CausalHash -> Maybe Path -> Maybe Width -> Backend IO TermSummary Source #
data TermSummary Source #
Constructors
| TermSummary | |
Fields | |
Instances
type TypeSummaryAPI = "definitions" :> ("types" :> ("by-hash" :> (Capture "hash" Reference :> ("summary" :> (QueryParam "name" Name :> (QueryParam "relativeTo" Path :> (QueryParam "renderWidth" Width :> APIGet TypeSummary))))))) Source #
serveTypeSummary :: Codebase IO Symbol Ann -> Reference -> Maybe Name -> Either ShortCausalHash CausalHash -> Maybe Path -> Maybe Width -> Backend IO TypeSummary Source #
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)))) | |||||