Send Beginners mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
http://www.haskell.org/mailman/listinfo/beginners
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."
Today's Topics:
1. Re: Beginners Digest, Vol 68, Issue 23 (Patrick Lynch)
2. Yesod server not starting (Mateusz Kowalczyk)
3. copy file and create directory (Renah Scarowsky)
4. Re: copy file and create directory (Magnus Therning)
----------------------------------------------------------------------
Message: 1
Date: Tue, 25 Feb 2014 09:05:25 -0500
From: "Patrick Lynch" <[email protected]>
To: <[email protected]>
Subject: Re: [Haskell-beginners] Beginners Digest, Vol 68, Issue 23
Message-ID: <7F5D27B903FD474AA7896F0E482A59EE@UserPC>
Content-Type: text/plain; format=flowed; charset=iso-8859-1;
reply-type=original
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
----- Original Message -----
From: <[email protected]>
To: <[email protected]>
Sent: Tuesday, February 25, 2014 7:00 AM
Subject: Beginners Digest, Vol 68, Issue 23
> Send Beginners mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.haskell.org/mailman/listinfo/beginners
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Beginners digest..."
>
>
> Today's Topics:
>
> 1. Re: Beginners Digest, Vol 68, Issue 22 (KMandPJLynch)
> 2. Re: Beginners Digest, Vol 68, Issue 22 (Mateusz Kowalczyk)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 24 Feb 2014 20:32:40 -0500
> From: KMandPJLynch <[email protected]>
> To: [email protected]
> Subject: Re: [Haskell-beginners] Beginners Digest, Vol 68, Issue 22
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> 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
>
> On Feb 24, 2014, at 2:30 PM, [email protected] wrote:
>
>> Send Beginners mailing list submissions to
>> [email protected]
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://www.haskell.org/mailman/listinfo/beginners
>> or, via email, send a message with subject or body 'help' to
>> [email protected]
>>
>> You can reach the person managing the list at
>> [email protected]
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of Beginners digest..."
>>
>>
>> Today's Topics:
>>
>> 1. Failure to install cabal-install. (Derek Mahar)
>> 2. Re: Failure to install cabal-install. (Derek Mahar)
>>
>>
>> ----------------------------------------------------------------------
>>
>> Message: 1
>> Date: Mon, 24 Feb 2014 13:20:45 -0500
>> From: Derek Mahar <[email protected]>
>> To: [email protected]
>> Subject: [Haskell-beginners] Failure to install cabal-install.
>> Message-ID:
>> <CABtfiZb7+p=dtgoz57gvxwghcdk1vpl175uxmirry1exm4a...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> How can I tell the Haskell compiler where to find module
>> Control.Monad.Error? After building GHC 7.6.3 and Haskell Platform
>> 2013.2
>> on Red Hat Linux 6, I found that 'cabal install cabal-install' fails when
>> it attempts to build library HTTP-4000.2.11 because the Haskell compiler
>> cannot find module Control.Monad.Error.
>>
>> *******************************************************
>> * Installation completed successfully.
>> *
>> * Programs installed into:
>> * /usr/local/bin
>> *
>> * Now do "cabal update" to initialize the package list
>> *
>> * Additional packages may be found at http://hackage.haskell.org
>> * or via "cabal list <pattern>"
>> *
>> * Use "cabal install <foo>" to install additional packages
>> *
>> *******************************************************
>> [dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal update
>> Downloading the latest package list from hackage.haskell.org
>> Note: there is a new version of cabal-install available.
>> To upgrade, run: cabal install cabal-install
>> [dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal install cabal-install
>> Resolving dependencies...
>> Configuring HTTP-4000.2.11...
>> Building HTTP-4000.2.11...
>> Preprocessing library HTTP-4000.2.11...
>>
>> Network/Stream.hs:35:8:
>> Could not find module `Control.Monad.Error'
>> There are files missing in the `mtl-2.1.2' package,
>> try running 'ghc-pkg check'.
>> Use -v to see a list of the files searched for.
>> Failed to install HTTP-4000.2.11
>> cabal: Error: some packages failed to install:
>> HTTP-4000.2.11 failed during the building phase. The exception was:
>> ExitFailure 1
>> cabal-install-1.18.0.2 depends on HTTP-4000.2.11 which failed to install.
>>
>> Thank you,
>>
>> Derek
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <http://www.haskell.org/pipermail/beginners/attachments/20140224/53adc45d/attachment-0001.html>
>>
>> ------------------------------
>>
>> Message: 2
>> Date: Mon, 24 Feb 2014 14:30:14 -0500
>> From: Derek Mahar <[email protected]>
>> To: [email protected]
>> Subject: Re: [Haskell-beginners] Failure to install cabal-install.
>> Message-ID:
>> <CABtfiZbF--Q93cx-GRHTU+FaX4+9d1uTSkoyb8E-N5e=c5z...@mail.gmail.com>
>> Content-Type: text/plain; charset="utf-8"
>>
>> On Mon, Feb 24, 2014 at 1:20 PM, Derek Mahar <[email protected]>
>> wrote:
>>
>>> [dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal update
>>> Downloading the latest package list from hackage.haskell.org
>>> Note: there is a new version of cabal-install available.
>>> To upgrade, run: cabal install cabal-install
>>> [dmahar@dmahar haskell-platform-2013.2.0.0]$ cabal install cabal-install
>>> Resolving dependencies...
>>> Configuring HTTP-4000.2.11...
>>> Building HTTP-4000.2.11...
>>> Preprocessing library HTTP-4000.2.11...
>>>
>>> Network/Stream.hs:35:8:
>>> Could not find module `Control.Monad.Error'
>>> There are files missing in the `mtl-2.1.2' package,
>>> try running 'ghc-pkg check'.
>>> Use -v to see a list of the files searched for.
>>> Failed to install HTTP-4000.2.11
>>> cabal: Error: some packages failed to install:
>>> HTTP-4000.2.11 failed during the building phase. The exception was:
>>> ExitFailure 1
>>> cabal-install-1.18.0.2 depends on HTTP-4000.2.11 which failed to
>>> install.
>>>
>>
>> 'ghc-pkg -v check' reports that my Haskell environment is missing many
>> files and that many of its packages are broken. See the attached output
>> of
>> 'ghc-pkg -v check'.
>>
>> Derek
>> -------------- next part --------------
>> An HTML attachment was scrubbed...
>> URL:
>> <http://www.haskell.org/pipermail/beginners/attachments/20140224/7c4e3467/attachment.html>
>> -------------- next part --------------
>> A non-text attachment was scrubbed...
>> Name: ghc-pkg-check.output
>> Type: application/octet-stream
>> Size: 38867 bytes
>> Desc: not available
>> URL:
>> <http://www.haskell.org/pipermail/beginners/attachments/20140224/7c4e3467/attachment.obj>
>>
>> ------------------------------
>>
>> Subject: Digest Footer
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
>>
>> ------------------------------
>>
>> End of Beginners Digest, Vol 68, Issue 22
>> *****************************************
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 25 Feb 2014 01:56:01 +0000
> From: Mateusz Kowalczyk <[email protected]>
> To: [email protected]
> Subject: Re: [Haskell-beginners] Beginners Digest, Vol 68, Issue 22
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=ISO-8859-1
>
> 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.
>
>
> ------------------------------
>
> Subject: Digest Footer
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
> ------------------------------
>
> End of Beginners Digest, Vol 68, Issue 23
> *****************************************
------------------------------
Message: 2
Date: Tue, 25 Feb 2014 15:59:58 +0000
From: Mateusz Kowalczyk <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Yesod server not starting
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1
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.
------------------------------
Message: 3
Date: Wed, 26 Feb 2014 07:24:19 +0000
From: Renah Scarowsky <[email protected]>
To: "[email protected]" <[email protected]>
Subject: [Haskell-beginners] copy file and create directory
Message-ID:
<33ada4af5f884249ac587c4821f56...@db4pr05mb271.eurprd05.prod.outlook.com>
Content-Type: text/plain; charset="us-ascii"
Is there a version of copyFile that will create the directory structure if it
does not exist yet?
Thanks,
Renah Scarowsky
Suite Solutions
Create>Manage>Deploy
http://www.suite-sol.com<http://www.suite-sol.com/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140226/d29b4b5d/attachment-0001.html>
------------------------------
Message: 4
Date: Wed, 26 Feb 2014 08:47:18 +0100
From: Magnus Therning <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] copy file and create directory
Message-ID:
<CAAExw5vy=e5f4nvhsvxs8nwcsjopjk8ns3dy+urays_czco...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8
On Wed, Feb 26, 2014 at 8:24 AM, Renah Scarowsky <[email protected]> wrote:
> Is there a version of copyFile that will create the directory structure if
> it does not exist yet?
No, I don't think so, I think you'll have to write one by combining
System.Directory.createDirectoryIfMissing with
System.Directory.copyFile.
/M
--
Magnus Therning OpenPGP: 0xAB4DFBA4
email: [email protected] jabber: [email protected]
twitter: magthe http://therning.org/magnus
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 68, Issue 24
*****************************************