HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Modulewai-extra-3.1.16Haskell2010

Network.Wai.Middleware.ForceDomain

  • 1 value
  • Packagewai-extra-3.1.16
  • Exports1
  • LanguageHaskell2010
  • LicenceMIT
  • SourceForceDomain.hs

Force a domain by redirecting. The checkDomain function takes the current domain and checks whether it is correct. It should return Nothing if the domain is correct, or `Just "domain.com"` if it is incorrect.