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.  System administration using Haskell (Kelleher, Kevin)
   2. Re:  System administration using Haskell (Patrick Mylund Nielsen)
   3. Re:  System administration using Haskell (Brent Yorgey)
   4. Re:  System administration using Haskell (Peter Jones)
   5.  Haskell Platform: Troubleshooting package        configuration
      errors? (egarrulo)
   6. Re:  Haskell Platform: Troubleshooting package configuration
      errors? (Mateusz Kowalczyk)
   7. Re:  Haskell Platform: Troubleshooting package configuration
      errors? (egarrulo)


----------------------------------------------------------------------

Message: 1
Date: Fri, 14 Jun 2013 17:29:08 +0000
From: "Kelleher, Kevin" <[email protected]>
Subject: [Haskell-beginners] System administration using Haskell
To: "The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell" <[email protected]>
Message-ID:
        <644E83C9A0C2C54A9F40341B5F63393716B73449@CAMBOSEXC06.camelot.local>
Content-Type: text/plain; charset="us-ascii"

After more than two decades using the C-family of languages
(C, C++, Java, C#, Perl, unix shells), I've been trying to learn
Haskell.  Each time I've begun with enthusiasm, and eventually
run out of gas before I've gotten to writing real code. Haskell's
learning curve is not very steep, but it is very long. 
I haven't yet gotten to the things I do the most, which all 
involve side-effects: mostly actions on directories and files,
as well as calls to system utilities or other pieces of software.

I'm working my way through "Real Life Haskell" and watching
Erick Meijer's lectures, but I'm beginning to fear I'll run
out of gas again if I can't write some programs that touch
the real world.

Are there any tutorials or other material that will get me
going in that area?

thanks,

Kevin

This message (including any attachments) is intended only for
the use of the individual or entity to which it is addressed and
may contain information that is non-public, proprietary,
privileged, confidential, and exempt from disclosure under
applicable law or may constitute as attorney work product.
If you are not the intended recipient, you are hereby notified
that any use, dissemination, distribution, or copying of this
communication is strictly prohibited. If you have received this
communication in error, notify us immediately by telephone and
(i) destroy this message if a facsimile or (ii) delete this message
immediately if this is an electronic communication.

Thank you.




------------------------------

Message: 2
Date: Fri, 14 Jun 2013 13:42:05 -0400
From: Patrick Mylund Nielsen <[email protected]>
Subject: Re: [Haskell-beginners] System administration using Haskell
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID:
        <CAEw2jfyhFOZos+__YThi=6+89mjhbszxf_ujmco7gdk5hae...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

I ran out of gas 4-5 times myself. Unfortunately I don't have an easy
answer.

I would recommend:

http://www.haskell.org/haskellwiki/Simple_unix_tools

https://www.fpcomplete.com/

http://learnyouahaskell.com/

as well as reading actual code from Haskell repositories on GitHub--and,
perhaps above all, to actually write programs--any kind of program. That,
more than anything, eventually makes all the abstract reading fall into
place.


On Fri, Jun 14, 2013 at 1:29 PM, Kelleher, Kevin <[email protected]>wrote:

> After more than two decades using the C-family of languages
> (C, C++, Java, C#, Perl, unix shells), I've been trying to learn
> Haskell.  Each time I've begun with enthusiasm, and eventually
> run out of gas before I've gotten to writing real code. Haskell's
> learning curve is not very steep, but it is very long.
> I haven't yet gotten to the things I do the most, which all
> involve side-effects: mostly actions on directories and files,
> as well as calls to system utilities or other pieces of software.
>
> I'm working my way through "Real Life Haskell" and watching
> Erick Meijer's lectures, but I'm beginning to fear I'll run
> out of gas again if I can't write some programs that touch
> the real world.
>
> Are there any tutorials or other material that will get me
> going in that area?
>
> thanks,
>
> Kevin
>
> This message (including any attachments) is intended only for
> the use of the individual or entity to which it is addressed and
> may contain information that is non-public, proprietary,
> privileged, confidential, and exempt from disclosure under
> applicable law or may constitute as attorney work product.
> If you are not the intended recipient, you are hereby notified
> that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this message
> immediately if this is an electronic communication.
>
> Thank you.
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://www.haskell.org/pipermail/beginners/attachments/20130614/c38e8620/attachment-0001.htm>

------------------------------

Message: 3
Date: Fri, 14 Jun 2013 13:47:45 -0400
From: Brent Yorgey <[email protected]>
Subject: Re: [Haskell-beginners] System administration using Haskell
To: The Haskell-Beginners Mailing List - Discussion of primarily
        beginner-level topics related to Haskell <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset=us-ascii

See if you can find some interesting open-source Haskell projects that
involve the sort of "real-world" code you're interested in, and see if
you can fix some small bugs, improve the documentation, etc.  That
will give you some practice writing real code, but it's ten times
easier if you don't have to start absolutely from scratch.

-Brent

On Fri, Jun 14, 2013 at 05:29:08PM +0000, Kelleher, Kevin wrote:
> After more than two decades using the C-family of languages
> (C, C++, Java, C#, Perl, unix shells), I've been trying to learn
> Haskell.  Each time I've begun with enthusiasm, and eventually
> run out of gas before I've gotten to writing real code. Haskell's
> learning curve is not very steep, but it is very long. 
> I haven't yet gotten to the things I do the most, which all 
> involve side-effects: mostly actions on directories and files,
> as well as calls to system utilities or other pieces of software.
> 
> I'm working my way through "Real Life Haskell" and watching
> Erick Meijer's lectures, but I'm beginning to fear I'll run
> out of gas again if I can't write some programs that touch
> the real world.
> 
> Are there any tutorials or other material that will get me
> going in that area?
> 
> thanks,
> 
> Kevin
> 
> This message (including any attachments) is intended only for
> the use of the individual or entity to which it is addressed and
> may contain information that is non-public, proprietary,
> privileged, confidential, and exempt from disclosure under
> applicable law or may constitute as attorney work product.
> If you are not the intended recipient, you are hereby notified
> that any use, dissemination, distribution, or copying of this
> communication is strictly prohibited. If you have received this
> communication in error, notify us immediately by telephone and
> (i) destroy this message if a facsimile or (ii) delete this message
> immediately if this is an electronic communication.
> 
> Thank you.
> 
> 
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners



------------------------------

Message: 4
Date: Fri, 14 Jun 2013 12:04:34 -0600
From: Peter Jones <[email protected]>
Subject: Re: [Haskell-beginners] System administration using Haskell
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain

"Kelleher, Kevin" <[email protected]> writes:
> I'm working my way through "Real Life Haskell" and watching
> Erick Meijer's lectures, but I'm beginning to fear I'll run
> out of gas again if I can't write some programs that touch
> the real world.
>
> Are there any tutorials or other material that will get me
> going in that area?

Kevin, I highly recommend you take a look at the Haskell from Scratch
video series by jekor:

  http://www.youtube.com/user/jekor

He's currently writing "redo" in Haskell, which is a software build tool
similar to make.  This means he's reading directory contents, reading
and writing files, and executing system calls.  Sounds right up your
alley.

-- 
Peter Jones --- Love to Develop
Devalot: http://www.devalot.com




------------------------------

Message: 5
Date: Fri, 14 Jun 2013 22:22:05 +0200
From: egarrulo <[email protected]>
Subject: [Haskell-beginners] Haskell Platform: Troubleshooting package
        configuration errors?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hello everyone,

I'm trying to build the Haskell Platform 2013.2.0.0 (with required GHC 
7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze).

So far, I've stumbled upon some a few errors, but I've managed to solve 
them and I have let the maintainers know. Now I'm stuck with an error 
while configuring the "network" package (see the end of this email). As 
such error has no accompanying diagnostics, I don't know how I could fix 
it. Any suggestions? Thanks for your attention.

Have a nice day.

-- ERROR MESSAGE STARTS HERE --
**************************************************
Building network-2.4.1.2
"/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make" "Setup" "-o" "Setup" 
"-package" "Cabal-1.16.0"
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
"./Setup" "configure" "--package-db=../../packages/package.conf.inplace" 
"--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0" 
"--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" 
"--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg" 
"--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs" 
"--with-happy=../happy-1.18.10/dist/build/happy/happy" 
"--happy-options=--template=../happy-1.18.10" 
"--with-alex=../alex-3.0.5/dist/build/alex/alex" 
"--enable-library-profiling" 
"--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace" 
"--user"
Configuring network-2.4.1.2...

Error:
Configuring the network-2.4.1.2 package failed
make: *** [build.stamp] Error 2

-- ERROR MESSAGE ENDS HERE --





------------------------------

Message: 6
Date: Fri, 14 Jun 2013 22:00:06 +0100
From: Mateusz Kowalczyk <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Platform: Troubleshooting
        package configuration errors?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 14/06/13 21:22, egarrulo wrote:
> Hello everyone,
> 
> I'm trying to build the Haskell Platform 2013.2.0.0 (with required
> GHC 7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze).
> 
> So far, I've stumbled upon some a few errors, but I've managed to
> solve them and I have let the maintainers know. Now I'm stuck with
> an error while configuring the "network" package (see the end of
> this email). As such error has no accompanying diagnostics, I don't
> know how I could fix it. Any suggestions? Thanks for your
> attention.
> 
> Have a nice day.
> 
> -- ERROR MESSAGE STARTS HERE -- 
> ************************************************** Building
> network-2.4.1.2 "/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make"
> "Setup" "-o" "Setup" "-package" "Cabal-1.16.0" [1 of 1] Compiling
> Main             ( Setup.hs, Setup.o ) Linking Setup ... "./Setup"
> "configure" "--package-db=../../packages/package.conf.inplace" 
> "--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0"
>  "--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" 
> "--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg" 
> "--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs" 
> "--with-happy=../happy-1.18.10/dist/build/happy/happy" 
> "--happy-options=--template=../happy-1.18.10" 
> "--with-alex=../alex-3.0.5/dist/build/alex/alex" 
> "--enable-library-profiling" 
> "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
>  "--user" Configuring network-2.4.1.2...
> 
> Error: Configuring the network-2.4.1.2 package failed make: ***
> [build.stamp] Error 2
> 
> -- ERROR MESSAGE ENDS HERE --
> 
> 
> 
> _______________________________________________ Beginners mailing
> list [email protected] 
> http://www.haskell.org/mailman/listinfo/beginners
> 
I think that the next logical step would be to configure the network
package by hand and see what error comes up. `cabal unpack network'
followed by `cabal configure' in the relevant directory should
hopefully provide a more meaningful error.

- -- 
Mateusz K.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (GNU/Linux)

iQIcBAEBAgAGBQJRu4RWAAoJEM1mucMq2pqX8H0P/1XW1Aiqi/g2Ze7TZYmf4OvK
xutQ7q2/2SVkL6IGmqUMR8+ktmGdAaFTtPsrQebZtSxR9xLyKqLumjnjZIj6sTqX
3sZqDuIUx3/LbXomytng9RlqU7P2W9Oq2NMznHIpBlt/qxppV3tA4SK/gR6vgq29
tzeQbE6PWdgFhbk74DljKmnmX8UcTGygnQtj/mOvOWsfiJ/Adt7Lhh+jKBi2J4TB
xOdd9PcY5JLu807S95XfmD9iUUobbU2wfxRzr04oikavV3freP+S6t/nyhHCLPES
rOvZvnPrDupKHnUhk+Sqia/NCiIXIHJpZc+yV+vmBE2ztek+Dp8dBX3C+ZBG5Tbb
e785IIU83jvOcOYJFaN9IKGBUNaCmY7hgfT6N7W/gtDbpFqe1Sezl9EimyEuAgjq
STTqzG2yjENlq5Z3oW9HAblLISgcHK4J5Z1Q/MyyaUzUA8ZibLDVTOEmqiR4MOWC
qthe3SpPV2IV1KXJTi8Dlpt7HwLOJF05uAGoSP2zQt9vRLftJ4gxuBKF1gPDeZP4
T0CQmz1eWlGf1UR0aLyRczX1abYfDR11KK/Sf6D2qOKN3HV3UfLVTIeF6D4yuRV7
itghxkzc64KqLKNdoutvaICahInhqEbvHp2JsaNDEeK9aSTZEY8hCadCQO+jSG2Y
Uvm3MM8TNzLpSQ99BBIl
=br3H
-----END PGP SIGNATURE-----



------------------------------

Message: 7
Date: Fri, 14 Jun 2013 23:18:49 +0200
From: egarrulo <[email protected]>
Subject: Re: [Haskell-beginners] Haskell Platform: Troubleshooting
        package configuration errors?
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

On 14/06/13 23:00, Mateusz Kowalczyk wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 14/06/13 21:22, egarrulo wrote:
>> Hello everyone,
>>
>> I'm trying to build the Haskell Platform 2013.2.0.0 (with required
>> GHC 7.6.3) on Debian GNU/Linux 6 (AKA Debian Squeeze).
>>
>> So far, I've stumbled upon some a few errors, but I've managed to
>> solve them and I have let the maintainers know. Now I'm stuck with
>> an error while configuring the "network" package (see the end of
>> this email). As such error has no accompanying diagnostics, I don't
>> know how I could fix it. Any suggestions? Thanks for your
>> attention.
>>
>> Have a nice day.
>>
>> -- ERROR MESSAGE STARTS HERE --
>> ************************************************** Building
>> network-2.4.1.2 "/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc" "--make"
>> "Setup" "-o" "Setup" "-package" "Cabal-1.16.0" [1 of 1] Compiling
>> Main             ( Setup.hs, Setup.o ) Linking Setup ... "./Setup"
>> "configure" "--package-db=../../packages/package.conf.inplace"
>> "--prefix=/home/egarrulo/bin/haskell-platform/haskell-platform-2013.2.0.0"
>>   "--with-compiler=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc"
>> "--with-hc-pkg=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/ghc-pkg"
>> "--with-hsc2hs=/home/egarrulo/bin/ghc/ghc-7.6.3/bin/hsc2hs"
>> "--with-happy=../happy-1.18.10/dist/build/happy/happy"
>> "--happy-options=--template=../happy-1.18.10"
>> "--with-alex=../alex-3.0.5/dist/build/alex/alex"
>> "--enable-library-profiling"
>> "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
>>   "--user" Configuring network-2.4.1.2...
>>
>> Error: Configuring the network-2.4.1.2 package failed make: ***
>> [build.stamp] Error 2
>>
>> -- ERROR MESSAGE ENDS HERE --
>>
>>
>>
>> _______________________________________________ Beginners mailing
>> list [email protected]
>> http://www.haskell.org/mailman/listinfo/beginners
>>
> I think that the next logical step would be to configure the network
> package by hand and see what error comes up. `cabal unpack network'
> followed by `cabal configure' in the relevant directory should
> hopefully provide a more meaningful error.

Thanks for your suggestion. Indeed, I considered using "cabal", but 
since its Hackage page lists many dependencies, I gave up installing it 
by hand (something I did for the "alex" package to fix a build issue). 
Moreover, according to Hackage "cabal" depends on "network":

http://hackage.haskell.org/package/cabal-install

Therefore we would have a chicken-and-egg problem here, wouldn't we? 
Unless "cabal" could be built and installed for off-line use only.



------------------------------

_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 60, Issue 23
*****************************************

Reply via email to