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

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.