HORIZON HASKELLDocslts/ghc-9.14.x6d5fdfd2026-10-12Search packagesCtrl K
Theme: |

GHC 9.14.1 · lts/ghc-9.14.x · 6d5fdfd · 2026-10-12

Moduleservant-0.20.3.0Haskell2010

Servant.API.Sub

Synopsis
  • Packageservant-0.20.3.0
  • 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
Instances43HasLink, MkLink, …