[Haskell-beginners] Yesod server not starting
Mateusz Kowalczyk
fuuzetsu at fuuzetsu.co.uk
Tue Feb 25 15:59:58 UTC 2014
On 25/02/14 14:05, Patrick Lynch wrote:
> Good morning,
>
> Re: Today's Topic 1 - see below.
>
> My apology for not including the error message.
>
> The following is what I did:
> I downloaded the source code and did the following [from the O'Reilly
> book]:
> 1. download was done on a Mac.
> 2. I saved the file to helloWorld.hs
> 3. I went to my terminal screen and executed:
> runhaskell helloworld.hs
> 4. on the terminal the following appeared:
> hell yeah
> 5. so far, so good
> 6. I went to my browser and entered the url:
> http://localhost:3000
> 7. I was expecting to see the following on my browser:
> <!DOCTYPE html>
> <html><head><title></head><body>hell yeah</body></html>
> 8. Unfortunately, I get the following message:
> "Safari can't connect to Server
> Safari can't open page "http://localhost:3000" because
> Safari can't connect to server "localhost"
>
> Good day,
> Patrick
>
>> On 25/02/14 01:32, KMandPJLynch wrote:
>>> Good evening,
>>>
>>> I'm trying to learn how to implement Haskell on a web site.
>>> I've got the O'Reilly book: "Developing Web Applications with Haskell and
>>> Yesod".
>>> I'd appreciate some guidance in regard to this.
>>> I'm having a bit of a problem getting the helloWorld.hs app up and
>>> running on Yesod.
>>>
>>> Thank you
>>>
>>
>> Well, what's your problem? Saying that you have one doesn't help us help
>> you ;). Paste in any relevant error messages that you can't figure out
>> and post your system information.
>>
>> PS: Next time create a new thread instead of replying to an existing,
>> irrelevant thread.
>>
>>
>> --
>> Mateusz K.
>>
>>
Hi again,
I took the liberty to change the topic name to something clearer.
Which code are you following? I don't have the copy of a book with me
but it's available online. Is the code from
http://www.yesodweb.com/book/basics what you're trying?
--
Mateusz K.
More information about the Beginners
mailing list