File: Internal.hs

package info (click to toggle)
haskell-warp 3.0.0.5-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 300 kB
  • ctags: 2
  • sloc: haskell: 2,890; makefile: 8
file content (21 lines) | stat: -rw-r--r-- 586 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{-# OPTIONS_GHC -fno-warn-deprecations #-}
module Network.Wai.Handler.Warp.Internal
    ( Settings (..)
    , getOnOpen
    , getOnClose
    , getOnException
    ) where

import Network.Wai.Handler.Warp.Settings (Settings (..))
import Network.Socket (SockAddr)
import Network.Wai (Request)
import Control.Exception (SomeException)

getOnOpen :: Settings -> SockAddr -> IO Bool
getOnOpen = settingsOnOpen

getOnClose :: Settings -> SockAddr -> IO ()
getOnClose = settingsOnClose

getOnException :: Settings -> Maybe Request -> SomeException -> IO ()
getOnException = settingsOnException