Send Beginners mailing list submissions to
        beginners@haskell.org

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
        beginners-requ...@haskell.org

You can reach the person managing the list at
        beginners-ow...@haskell.org

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Beginners digest..."


Today's Topics:

   1. Re:  sorting by elements in a tuple (Chadda? Fouch?)
   2.  is there a best os to easily install external    libraries ?
      (david hodgetts)
   3.  parsing upto n items with parsec (Ashish Agarwal)
   4. Re:  is there a best os to easily install external        libraries
      ? (Kyle Murphy)
   5. Re:  is there a best os to easily install external        libraries
      ? (Joe Fredette)


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

Message: 1
Date: Fri, 16 Oct 2009 10:42:30 +0200
From: Chadda? Fouch? <chaddai.fou...@gmail.com>
Subject: Re: [Haskell-beginners] sorting by elements in a tuple
To: Daniel Fischer <daniel.is.fisc...@web.de>
Cc: beginners@haskell.org
Message-ID:
        <e9350eaf0910160142r1cb3932fx48d8abc1d2e4f...@mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

On Fri, Oct 16, 2009 at 10:37 AM, Chaddaï Fouché
<chaddai.fou...@gmail.com> wrote:
> On Fri, Oct 16, 2009 at 8:07 AM, Daniel Fischer
> <daniel.is.fisc...@web.de> wrote:
>> You would achieve that by
>>
>> tuplesort = sortBy (comparing fst)
>>
>> or, eta-expanded,
>>
>> tuplesort xs = sortBy (comparing fst) xs
>>
>> But if you finally want to sort by the second component also (subordinate to 
>> sorting by
>> the first component), it's much easier to go the whole way at once and use 
>> plain "sort".
>
> tuplesort = sortBy (comparing fst `mplus` comparing snd)
>

Ooops, that's "mappend" rather than "mplus" :

> tuplesort = sortBy (comparing fst `mappend` comparing snd)

(it would be really cool if (++) was a synonym for mappend though as
it used to be)

-- 
Jedaï


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

Message: 2
Date: Fri, 16 Oct 2009 14:46:16 +0200
From: david hodgetts <david.demainlal...@gmail.com>
Subject: [Haskell-beginners] is there a best os to easily install
        external        libraries ?
To: beginners@haskell.org
Message-ID:
        <42a5d61a0910160546r73495af8oe1de66f7e2412...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hello everyone,
to give some context: I am not a real developer. I am a motion designer who
enjoys doing procedural animations and installations with tools such as
processing, flash, openframeworks. This might explain some of the
difficulties I describe below.

Wanting to broaden my thinking skills and CS knowledge, I have started to
learn Haskell, and I must say I am having a great time.

I am at a point now where I would like to play around with some of the
popular UI and graphical libraries (gtk+, freeGlut, sdl etc). But my
experience up to now has been a bit painfull in the sense that most of these
packages don't install nicely with caball ( on windows XP). I managed to get
gtk, freeglut, and curl to install after long hours googling around and
doing voodoo in msys and cygwin. Last night I tried to install the SDL
bindings to follow a blog post about automata, but completely failed. This
got me to wondering if the haskell experience with regards to installing
external libraries might be any easier on Linux?

in advance many thanks

best regards


david hodgetts
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20091016/fafaf748/attachment-0001.html

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

Message: 3
Date: Fri, 16 Oct 2009 11:41:47 -0400
From: Ashish Agarwal <agarwal1...@gmail.com>
Subject: [Haskell-beginners] parsing upto n items with parsec
To: beginners@haskell.org
Message-ID:
        <d8be5ae20910160841hb56ffd2wc2ac767483d9e...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi. I'm just learning Parsec and Haskell. It is a great library, and I see
how "many" lets you parse 0 or more items, "many1" parses 1 or more items,
and "count" parses exactly n items. However, there is no combinator that
parses between m and n items. What would be the best implementation for
this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20091016/7417473d/attachment-0001.html

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

Message: 4
Date: Fri, 16 Oct 2009 21:35:25 -0400
From: Kyle Murphy <orc...@gmail.com>
Subject: Re: [Haskell-beginners] is there a best os to easily install
        external        libraries ?
To: david hodgetts <david.demainlal...@gmail.com>
Cc: Beginners@haskell.org
Message-ID:
        <2db78cee0910161835q494a0685tf013c17848651...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Short answer is yes, it is easier on Linux. The long answer is that most of
the libraries are cross platform, and there are some fairly nice
libraries/utilities that can make getting an install in Windows working
fairly pain-free, but they're hard to track down and they tend to be...
touchy... about version numbers and such, in particular they're often a few
versions behind what most people are using. From the standpoint of doing
development, Linux is definitely much easier to work with, but it has its
own quirks to deal with. Getting the system up and running the way you want
tends to be a little intimidating for a newcomer, but once you've got it all
taken care of it tends to chug along fairly well on its own. Ubuntu Linux is
the most newbie friendly in general (they tend to try to do everything for
you if possible) and you'll find the answers to most common questions/issues
with it using a simple google search, but from the standpoint of Haskell
development it tends to be a little tougher to work with (most of the
packaged libraries for it are a bit out of date and/or have been modified
from the standard ones). In contrast something like Gentoo or Arch Linux are
very newbie un-friendly (you're expected to know and understand what kind of
hardware you're installing it on to start with), but because they're built
from source (more or less) they tend to have the very latest versions of
everything. Using Arch or Gentoo you'll probably learn more, and once you've
got it all straightened out it will be very easy to work with, but it's
going to be an uphill battle just getting it installed and working right.
Ubuntu is about as close as you can get to a point and click install with
Linux, but is likely to cause you some stress when working with Haskell
(although not as much as Windows).

Really it comes down to what you want to get out of the process. If you've
got a spare computer you don't mind taking out of commission for a while
(possibly as long as a month or two) and you've got some time to play around
with things and maybe learn a bit about your hardware, I'd recommend Arch
Linux. If you want something you can have up and running within a day and
don't want to worry about any of the details of, I'd go with Ubuntu.

For a nice compromise that doesn't involve replacing you're OS you might
want to take a look at Cygwin if you haven't yet. It's more or less a port
of the standard Linux shells and utilities to Windows and can go a long way
towards bringing the Linux experience into the Windows world.

On Fri, Oct 16, 2009 at 8:46 AM, david hodgetts <
david.demainlal...@gmail.com> wrote:

> Hello everyone,
> to give some context: I am not a real developer. I am a motion designer who
> enjoys doing procedural animations and installations with tools such as
> processing, flash, openframeworks. This might explain some of the
> difficulties I describe below.
>
> Wanting to broaden my thinking skills and CS knowledge, I have started to
> learn Haskell, and I must say I am having a great time.
>
> I am at a point now where I would like to play around with some of the
> popular UI and graphical libraries (gtk+, freeGlut, sdl etc). But my
> experience up to now has been a bit painfull in the sense that most of these
> packages don't install nicely with caball ( on windows XP). I managed to get
> gtk, freeglut, and curl to install after long hours googling around and
> doing voodoo in msys and cygwin. Last night I tried to install the SDL
> bindings to follow a blog post about automata, but completely failed. This
> got me to wondering if the haskell experience with regards to installing
> external libraries might be any easier on Linux?
>
> in advance many thanks
>
> best regards
>
>
> david hodgetts
>
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20091016/93b3f60d/attachment-0001.html

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

Message: 5
Date: Fri, 16 Oct 2009 21:42:15 -0400
From: Joe Fredette <jfred...@gmail.com>
Subject: Re: [Haskell-beginners] is there a best os to easily install
        external        libraries ?
To: Kyle Murphy <orc...@gmail.com>
Cc: david hodgetts <david.demainlal...@gmail.com>,
        Beginners@haskell.org
Message-ID: <570752b2-23ea-400c-b6b2-56c2dc312...@gmail.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes

Excellent answer, but let me add, instead of Cygwin, andLinux gives  
you an actual linux system which runs _on top of_ your windows system  
-- as in a full kernel, etc (actually a distro of ubuntu). It's based  
on coLinux, but is very nice. You get the full weight of linux, but  
without having to dual-boot or otherwise do anything drastic with your  
OS.

/Joe
On Oct 16, 2009, at 9:35 PM, Kyle Murphy wrote:

> Short answer is yes, it is easier on Linux. The long answer is that  
> most of the libraries are cross platform, and there are some fairly  
> nice libraries/utilities that can make getting an install in Windows  
> working fairly pain-free, but they're hard to track down and they  
> tend to be... touchy... about version numbers and such, in  
> particular they're often a few versions behind what most people are  
> using. From the standpoint of doing development, Linux is definitely  
> much easier to work with, but it has its own quirks to deal with.  
> Getting the system up and running the way you want tends to be a  
> little intimidating for a newcomer, but once you've got it all taken  
> care of it tends to chug along fairly well on its own. Ubuntu Linux  
> is the most newbie friendly in general (they tend to try to do  
> everything for you if possible) and you'll find the answers to most  
> common questions/issues with it using a simple google search, but  
> from the standpoint of Haskell development it tends to be a little  
> tougher to work with (most of the packaged libraries for it are a  
> bit out of date and/or have been modified from the standard ones).  
> In contrast something like Gentoo or Arch Linux are very newbie un- 
> friendly (you're expected to know and understand what kind of  
> hardware you're installing it on to start with), but because they're  
> built from source (more or less) they tend to have the very latest  
> versions of everything. Using Arch or Gentoo you'll probably learn  
> more, and once you've got it all straightened out it will be very  
> easy to work with, but it's going to be an uphill battle just  
> getting it installed and working right. Ubuntu is about as close as  
> you can get to a point and click install with Linux, but is likely  
> to cause you some stress when working with Haskell (although not as  
> much as Windows).
>
> Really it comes down to what you want to get out of the process. If  
> you've got a spare computer you don't mind taking out of commission  
> for a while (possibly as long as a month or two) and you've got some  
> time to play around with things and maybe learn a bit about your  
> hardware, I'd recommend Arch Linux. If you want something you can  
> have up and running within a day and don't want to worry about any  
> of the details of, I'd go with Ubuntu.
>
> For a nice compromise that doesn't involve replacing you're OS you  
> might want to take a look at Cygwin if you haven't yet. It's more or  
> less a port of the standard Linux shells and utilities to Windows  
> and can go a long way towards bringing the Linux experience into the  
> Windows world.
>
> On Fri, Oct 16, 2009 at 8:46 AM, david hodgetts <david.demainlal...@gmail.com 
> > wrote:
> Hello everyone,
>
> to give some context: I am not a real developer. I am a motion  
> designer who enjoys doing procedural animations and installations  
> with tools such as processing, flash, openframeworks. This might  
> explain some of the difficulties I describe below.
>
> Wanting to broaden my thinking skills and CS knowledge, I have  
> started to learn Haskell, and I must say I am having a great time.
>
> I am at a point now where I would like to play around with some of  
> the popular UI and graphical libraries (gtk+, freeGlut, sdl etc).  
> But my experience up to now has been a bit painfull in the sense  
> that most of these packages don't install nicely with caball ( on  
> windows XP). I managed to get gtk, freeglut, and curl to install  
> after long hours googling around and doing voodoo in msys and  
> cygwin. Last night I tried to install the SDL bindings to follow a  
> blog post about automata, but completely failed. This got me to  
> wondering if the haskell experience with regards to installing  
> external libraries might be any easier on Linux?
>
> in advance many thanks
>
> best regards
>
>
> david hodgetts
>
>
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>
> _______________________________________________
> Beginners mailing list
> Beginners@haskell.org
> http://www.haskell.org/mailman/listinfo/beginners



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

_______________________________________________
Beginners mailing list
Beginners@haskell.org
http://www.haskell.org/mailman/listinfo/beginners


End of Beginners Digest, Vol 16, Issue 9
****************************************

Reply via email to