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

Modulescotty-0.22Haskell2010

Web.Scotty.Internal.Types

  • 21 types
  • 18 values
  • Packagescotty-0.22
  • Exports39
  • 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.

Instances1Default
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 StatusError
#

Deprecated. If it is supposed to be caught, a proper exception type should be defined

E.g. when a parameter is not found in a query string (400 Bad Request) or when parsing a JSON body fails (422 Unprocessable Entity)

Constructors

Instances3Show, Exception, MonadError
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

Instances20MonadTrans, MonadTransControl, MonadError, MonadReader, MonadBase, MonadBaseControl, …