HORIZON HASKELLDocslts/ghc-10.0.xfc4e5982026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulescotty-0.30Haskell2010

Web.Scotty.Internal.Types

  • 20 types
  • 18 values
  • Packagescotty-0.30
  • Exports38
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceTypes.hs
datadata Options
#

Constructors

  • Options
    • verbose :: Int

      0 = silent, 1(def) = startup banner

    • settings :: Settings

      Warp Settings Note: to work around an issue in warp, the default FD cache duration is set to 0 so changes to static files are always picked up. This likely has performance implications, so you may want to modify this for production servers using setFdCacheDuration.

    • jsonMode :: Bool

      If True, return JSON error responses instead of HTML

datadata BodyInfo
#

The key part of having two MVars is that we can "clone" the BodyInfo to create a copy where the index is reset to 0, but the chunk cache is the same. Passing a cloned BodyInfo into each matched route allows them each to start from the first chunk if they call bodyReader.

Introduced in (#308)

Constructors

newtypenewtype ScottyT (m :: Type -> Type) a
#
Instances5Monad, Functor, Applicative, Semigroup, Monoid
datadata ActionError
#

Internal exception mechanism used to modify the request processing flow.

The exception constructor is not exposed to the user and all exceptions of this type are caught and processed within the runAction function.

Constructors

Instances2Show, Exception
datadata ScottyException
#
Instances2Show, Exception
typetype File t = (Text, FileInfo t)
#

Type parameter t is the file content. Could be () when not needed or a FilePath for temp files instead.

newtypenewtype ActionT (m :: Type -> Type) a
#

Constructors

Instances19MonadTrans, MonadTransControl, MonadReader, MonadBase, MonadBaseControl, Monad, …