{-# LANGUAGE OverloadedStrings #-}{-# LANGUAGE CPP #-}-- | This module simply re-exports from other modules for your convenience.moduleYesod(-- * Re-exports from yesod-coremoduleYesod.Request,moduleYesod.Content,moduleYesod.Core,moduleYesod.Handler,moduleYesod.Dispatch,moduleYesod.Widget,moduleYesod.Form,moduleYesod.Json,moduleYesod.Persist-- * Running your application,warp,warpDebug,develServer-- * Commonly referenced functions/datatypes,Application,lift,liftIO,MonadPeelIO-- * Utilities,showIntegral,readIntegral-- * Hamlet library-- ** Hamlet,hamlet,xhamlet,Hamlet,Html,renderHamlet,renderHtml,string,preEscapedString,cdata-- ** Julius,julius,Julius,renderJulius-- ** Cassius,cassius,Cassius,renderCassius)whereimportYesod.ContentimportYesod.DispatchimportYesod.CoreimportYesod.Handlerhiding(runHandler)importText.HamletimportText.CassiusimportText.JuliusimportYesod.RequestimportYesod.WidgetimportYesod.FormimportYesod.JsonimportYesod.PersistimportNetwork.Wai(Application)importNetwork.Wai.Middleware.DebugimportControl.Monad.Trans.Class(lift)importControl.Monad.IO.Class(liftIO)importControl.Monad.IO.Peel(MonadPeelIO)importNetwork.Wai.Handler.Warp(run)importSystem.IO(stderr,hPutStrLn)showIntegral::Integrala=>a->StringshowIntegralx=show(fromIntegralx::Integer)readIntegral::Numa=>String->MaybeareadIntegrals=casereadssof(i,_):_->Just$fromIntegeri[]->Nothing-- | A convenience method to run an application using the Warp webserver on the-- specified port. Automatically calls 'toWaiApp'.warp::(Yesoda,YesodDispatchaa)=>Int->a->IO()warpporta=toWaiAppa>>=runport-- | Same as 'warp', but also sends a message to stderr for each request, and-- an \"application launched\" message as well. Can be useful for development.warpDebug::(Yesoda,YesodDispatchaa)=>Int->a->IO()warpDebugporta=dohPutStrLnstderr$"Application launched, listening on port "++showporttoWaiAppa>>=runport.debug-- | Run a development server, where your code changes are automatically-- reloaded.develServer::Int-- ^ port number->String-- ^ module name holding the code->String-- ^ name of function providing a with-application->IO()develServerportmodufunc=mapM_putStrLn["Due to issues with GHC 7.0.2, you must now run the devel server","separately. To do so, ensure you have installed the ","wai-handler-devel package >= 0.2.1 and run:",concat[" wai-handler-devel ",showport," ",modu," ",func," --yesod"],""]