Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
type FuzzyFindAPI = "find" :> (QueryParam "relativeTo" Path :> (QueryParam "limit" Int :> (QueryParam "renderWidth" Width :> (QueryParam "query" String :> APIGet [(Alignment, FoundResult)])))) Source #
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 | |
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-C8EhduMcnIVLJzlEB6yMhH" 'False) (C1 ('MetaCons "FoundTerm" 'PrefixI 'True) (S1 ('MetaSel ('Just "bestFoundTermName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 HashQualifiedName) :*: S1 ('MetaSel ('Just "namedTerm") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 NamedTerm))) |
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 | |
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-C8EhduMcnIVLJzlEB6yMhH" '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 #
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 # | |
toJSON :: ResultSegment -> Value # toEncoding :: ResultSegment -> Encoding # toJSONList :: [ResultSegment] -> Value # toEncodingList :: [ResultSegment] -> Encoding # | |
ToSchema Alignment Source # | |
ToSchema Result Source # | |
ToSchema ResultSegment Source # | |
ToSample Alignment Source # | |
ToParam (QueryParam "limit" Int) Source # | |
toParam :: Proxy (QueryParam "limit" Int) -> DocQueryParam # | |
ToParam (QueryParam "query" String) Source # | |
toParam :: Proxy (QueryParam "query" String) -> DocQueryParam # |