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-app-static-3.1.9Haskell2010

Network.Wai.Application.Static

Static file serving for WAI.

  • 1 type
  • 14 values

WAI application

1 declaration

Default Settings

valuedefaultWebAppSettings
  1. :: FilePath

    root folder to serve from

  2. -> StaticSettings
#

Settings optimized for a web application. Files will have aggressive caching applied and hashes calculated, and indices and listings are disabled.

Settings

Determine the mime type of the given file. Note that this function lives in IO in case you want to perform more complicated mimetype analysis, such as via the file utility.

valuessIndices :: StaticSettings -> [Piece]
#

Ordered list of filenames to be used for indices. If the user requests a folder, and a file with the given name is found in that folder, that file is served. This supercedes any directory listing.

If True, send a redirect to the user when a folder is requested and an index page should be displayed. When False, display the content immediately.