HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

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, …