| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Unison.Server.Local.Endpoints.FuzzyFind
Contents
Documentation
type FuzzyFindAPI = "find" :> (QueryParam "relativeTo" Path :> (QueryParam "limit" Int :> (QueryParam "renderWidth" Width :> (QueryParam "query" String :> APIGet [(Alignment, FoundResult)])))) Source #
Constructors
| FoundTerm | |
Fields | |
Instances
| ToJSON FoundTerm Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind | |
| Generic FoundTerm Source # | |
| Show FoundTerm Source # | |
| ToSchema FoundTerm Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods declareNamedSchema :: Proxy FoundTerm -> Declare (Definitions Schema) NamedSchema # | |
| type Rep FoundTerm Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind type Rep FoundTerm = D1 ('MetaData "FoundTerm" "Unison.Server.Local.Endpoints.FuzzyFind" "unison-share-api-0.0.0-8KHYB2MVrLdI8jH2YrPsa2" 'False) (C1 ('MetaCons "FoundTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "bestFoundTermName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashQualifiedName) :*: S1 ('MetaSel ('Just "namedTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NamedTerm))) | |
Constructors
| FoundType | |
Instances
| ToJSON FoundType Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind | |
| Generic FoundType Source # | |
| Show FoundType Source # | |
| ToSchema FoundType Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods declareNamedSchema :: Proxy FoundType -> Declare (Definitions Schema) NamedSchema # | |
| type Rep FoundType Source # | |
Defined in Unison.Server.Local.Endpoints.FuzzyFind type Rep FoundType = D1 ('MetaData "FoundType" "Unison.Server.Local.Endpoints.FuzzyFind" "unison-share-api-0.0.0-8KHYB2MVrLdI8jH2YrPsa2" 'False) (C1 ('MetaCons "FoundType" 'PrefixI 'True) (S1 ('MetaSel ('Just "bestFoundTypeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashQualifiedName) :*: (S1 ('MetaSel ('Just "typeDef") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (DisplayObject SyntaxText SyntaxText)) :*: S1 ('MetaSel ('Just "namedType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NamedType)))) | |
data FoundResult Source #
Constructors
| FoundTermResult FoundTerm | |
| FoundTypeResult FoundType |
Instances
serveFuzzyFind :: forall m. MonadIO m => Codebase m Symbol Ann -> Either ShortCausalHash CausalHash -> Maybe Path -> Maybe Int -> Maybe Width -> Maybe String -> Backend m [(Alignment, FoundResult)] Source #
Orphan instances
| ToJSON Alignment Source # | |
| ToJSON Result Source # | |
| ToJSON ResultSegment Source # | |
Methods toJSON :: ResultSegment -> Value # toEncoding :: ResultSegment -> Encoding # toJSONList :: [ResultSegment] -> Value # toEncodingList :: [ResultSegment] -> Encoding # | |
| ToSchema Alignment Source # | |
Methods declareNamedSchema :: Proxy Alignment -> Declare (Definitions Schema) NamedSchema # | |
| ToSchema Result Source # | |
Methods declareNamedSchema :: Proxy Result -> Declare (Definitions Schema) NamedSchema # | |
| ToSchema ResultSegment Source # | |
Methods declareNamedSchema :: Proxy ResultSegment -> Declare (Definitions Schema) NamedSchema # | |
| ToSample Alignment Source # | |
| ToParam (QueryParam "limit" Int) Source # | |
Methods toParam :: Proxy (QueryParam "limit" Int) -> DocQueryParam # | |
| ToParam (QueryParam "query" String) Source # | |
Methods toParam :: Proxy (QueryParam "query" String) -> DocQueryParam # | |