Error when connecting to hello world yesod example on Windows 8

Posted by reltone on Stack Overflow See other posts from Stack Overflow or by reltone
Published on 2012-10-07T19:00:06Z Indexed on 2012/10/11 15:37 UTC
Read the original article Hit count: 147

Filed under:

I start the executable (after building it with cabal) and it says "Application launched, listening on port 3000." Next I connect to it with my web browser and the console says "threadWaitRead requires -threaded on Windows, or use System.IO.hWaitForInput." The web browser never connects. Not sure what this is actually recommending I do to resolve the problem.

{-# LANGUAGE TypeFamilies, QuasiQuotes, MultiParamTypeClasses,
             TemplateHaskell, OverloadedStrings #-}
import Yesod

data HelloWorld = HelloWorld

mkYesod "HelloWorld" [parseRoutes|
/ HomeR GET
|]

instance Yesod HelloWorld

getHomeR :: Handler RepHtml
getHomeR = defaultLayout [whamlet|Hello World!|]

main :: IO ()
main = warpDebug 3000 HelloWorld

© Stack Overflow or respective owner

Related posts about yesod