wai/wai-app-static/embedded-sample.hs
2012-05-22 07:47:48 +03:00

14 lines
363 B
Haskell

{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE OverloadedStrings #-}
import Network.Wai.Application.Static
import Network.Wai.Handler.Warp (run)
import Data.FileEmbed
import WaiAppStatic.Types
import WaiAppStatic.Storage.Embedded
main :: IO ()
main = run 3000 $ staticApp (embeddedSettings $(embedDir "test"))
{ ssIndices = []
, ssMaxAge = NoMaxAge
}