| Safe Haskell | None |
|---|---|
| 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
Constructors
| FoundType | |
Instances
| ToJSON FoundType Source # | |||||
| Generic FoundType Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Associated Types
| |||||
| 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-9fFxz1kl0ay2hTWczK4vVA" '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
| ToJSON FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods toJSON :: FoundResult -> Value # toEncoding :: FoundResult -> Encoding # toJSONList :: [FoundResult] -> Value # toEncodingList :: [FoundResult] -> Encoding # omitField :: FoundResult -> Bool # | |||||
| Generic FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Associated Types
| |||||
| Show FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods showsPrec :: Int -> FoundResult -> ShowS # show :: FoundResult -> String # showList :: [FoundResult] -> ShowS # | |||||
| ToSchema FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods declareNamedSchema :: Proxy FoundResult -> Declare (Definitions Schema) NamedSchema # | |||||
| ToSample FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind Methods toSamples :: Proxy FoundResult -> [(Text, FoundResult)] # | |||||
| type Rep FoundResult Source # | |||||
Defined in Unison.Server.Local.Endpoints.FuzzyFind type Rep FoundResult = D1 ('MetaData "FoundResult" "Unison.Server.Local.Endpoints.FuzzyFind" "unison-share-api-0.0.0-9fFxz1kl0ay2hTWczK4vVA" 'False) (C1 ('MetaCons "FoundTermResult" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FoundTerm)) :+: C1 ('MetaCons "FoundTypeResult" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FoundType))) | |||||
serveFuzzyFind :: forall (m :: Type -> Type). 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 # omitField :: ResultSegment -> Bool # | |
| 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 # | |