HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Moduleservant-0.20.2Haskell2010

Servant.API.Sub

  • 1 type
  • Packageservant-0.20.2
  • Exports1
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceSub.hs
datadata (:>) (path :: k) a
#

The contained API (second argument) can be found under ("/" ++ path) (path being the first argument).

Example:

Example3 expressions
-- GET /hello/world-- returning a JSON encoded World valuetype MyApi = "hello" :> "world" :> Get '[JSON] World
Instances41HasLink, MkLink, …