Added all dependencies from scaffolded site
This commit is contained in:
parent
80020fc4d8
commit
5445e3bb7e
17
Yesod.hs
17
Yesod.hs
@ -8,6 +8,9 @@ module Yesod
|
|||||||
, module Yesod.Handler
|
, module Yesod.Handler
|
||||||
, module Yesod.Dispatch
|
, module Yesod.Dispatch
|
||||||
, module Yesod.Widget
|
, module Yesod.Widget
|
||||||
|
, module Yesod.Form
|
||||||
|
, module Yesod.Json
|
||||||
|
, module Yesod.Persist
|
||||||
-- * Running your application
|
-- * Running your application
|
||||||
, warp
|
, warp
|
||||||
, warpDebug
|
, warpDebug
|
||||||
@ -50,7 +53,11 @@ import Text.Julius
|
|||||||
|
|
||||||
import Yesod.Request
|
import Yesod.Request
|
||||||
import Yesod.Widget
|
import Yesod.Widget
|
||||||
|
import Yesod.Form
|
||||||
|
import Yesod.Json
|
||||||
|
import Yesod.Persist
|
||||||
import Network.Wai (Application)
|
import Network.Wai (Application)
|
||||||
|
import Network.Wai.Middleware.Debug
|
||||||
import qualified Network.Wai as W
|
import qualified Network.Wai as W
|
||||||
import Control.Monad.Trans.Class (lift)
|
import Control.Monad.Trans.Class (lift)
|
||||||
import Control.Monad.IO.Class (liftIO)
|
import Control.Monad.IO.Class (liftIO)
|
||||||
@ -78,12 +85,4 @@ warp port a = toWaiApp a >>= run port
|
|||||||
warpDebug :: (Yesod a, YesodSite a) => Int -> a -> IO ()
|
warpDebug :: (Yesod a, YesodSite a) => Int -> a -> IO ()
|
||||||
warpDebug port a = do
|
warpDebug port a = do
|
||||||
hPutStrLn stderr $ "Application launched, listening on port " ++ show port
|
hPutStrLn stderr $ "Application launched, listening on port " ++ show port
|
||||||
toWaiApp a >>= run port . debugMiddleware
|
toWaiApp a >>= run port . debug
|
||||||
where
|
|
||||||
debugMiddleware app req = do
|
|
||||||
hPutStrLn stderr $ concat
|
|
||||||
[ show $ W.requestMethod req
|
|
||||||
, " "
|
|
||||||
, show $ W.pathInfo req
|
|
||||||
]
|
|
||||||
app req
|
|
||||||
|
|||||||
@ -23,11 +23,18 @@ flag test
|
|||||||
library
|
library
|
||||||
build-depends: base >= 4 && < 5
|
build-depends: base >= 4 && < 5
|
||||||
, yesod-core >= 0.7 && < 0.8
|
, yesod-core >= 0.7 && < 0.8
|
||||||
|
, yesod-auth >= 0.3 && < 0.4
|
||||||
|
, yesod-form >= 0.0 && < 0.1
|
||||||
|
, yesod-json >= 0.0 && < 0.1
|
||||||
|
, yesod-persistent >= 0.0 && < 0.1
|
||||||
|
, yesod-static >= 0.0 && < 0.1
|
||||||
, monad-peel >= 0.1 && < 0.2
|
, monad-peel >= 0.1 && < 0.2
|
||||||
, transformers >= 0.2 && < 0.3
|
, transformers >= 0.2 && < 0.3
|
||||||
, wai >= 0.3 && < 0.4
|
, wai >= 0.3 && < 0.4
|
||||||
, hamlet >= 0.7 && < 0.8
|
, hamlet >= 0.7 && < 0.8
|
||||||
, warp >= 0.3 && < 0.4
|
, warp >= 0.3 && < 0.4
|
||||||
|
, mime-mail >= 0.1 && < 0.2
|
||||||
|
, hjsmin >= 0.0.5 && < 0.1
|
||||||
exposed-modules: Yesod
|
exposed-modules: Yesod
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user