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.  Cksum for StartProcess.exe (Tim Perry)
   2. ??: [Haskell-beginners] Cksum for StartProcess.exe (??)
   3. Re: ??: [Haskell-beginners] Cksum for StartProcess.exe (Tim Perry)
   4. Re:  shortening code (rizwan hudda)
   5.  Re: shortening code (Christian Maeder)
   6.  Working with System.Timeout in Windows (Adolfo Builes)


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

Message: 1
Date: Wed, 30 Jun 2010 00:25:36 -0700 (PDT)
From: Tim Perry <perry2...@yahoo.com>
Subject: [Haskell-beginners] Cksum for StartProcess.exe
To: "beginners@haskell.org" <beginners@haskell.org>
Message-ID: <955753.75182...@web54302.mail.re2.yahoo.com>
Content-Type: text/plain; charset=us-ascii

My virus scanner thinks StartProcess.exe is infected. I was hoping someone 
could post a valid cksum for it so I could compare. Thanks - Tim

Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"

Sent from my i(Wish-It-Worked-As-A)Phone




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

Message: 2
Date: Wed, 30 Jun 2010 16:08:15 +0800
From: ?? <zhao...@7500.com.cn>
Subject: ??: [Haskell-beginners] Cksum for StartProcess.exe
To: <beginners@haskell.org>
Message-ID:
        <ff4f53e48bee75448c75576b256ccb58ef0...@excluster.wxxr.com.cn>
Content-Type: text/plain;       charset="gb2312"



StartProcess.exe size 8192Byte
MD5 
88d4a76b2917f29d734912719d99521c *StartProcess.exe 

-----ÓʼþÔ­¼þ-----
·¢¼þÈË: beginners-boun...@haskell.org [mailto:beginners-boun...@haskell.org] 
´ú±í Tim Perry
·¢ËÍʱ¼ä: 2010Äê6ÔÂ30ÈÕ 15:26
ÊÕ¼þÈË: beginners@haskell.org
Ö÷Ìâ: [Haskell-beginners] Cksum for StartProcess.exe

My virus scanner thinks StartProcess.exe is infected. I was hoping someone 
could post a valid cksum for it so I could compare. Thanks - Tim

Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"

Sent from my i(Wish-It-Worked-As-A)Phone


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


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

Message: 3
Date: Wed, 30 Jun 2010 01:45:55 -0700 (PDT)
From: Tim Perry <perry2...@yahoo.com>
Subject: Re: ??: [Haskell-beginners] Cksum for StartProcess.exe
To: ?? <zhao...@7500.com.cn>
Cc: "<beginners@haskell.org>" <beginners@haskell.org>
Message-ID: <999271.33409...@web54301.mail.re2.yahoo.com>
Content-Type: text/plain; charset=utf-8

Thank you. I'm in the clear....

Sent from my i(Wish-It-Worked-As-A)Phone

On Jun 30, 2010, at 1:08, 赵欣 <zhao...@7500.com.cn> wrote:



StartProcess.exe size 8192Byte
MD5 
88d4a76b2917f29d734912719d99521c *StartProcess.exe 

-----邮件原件-----
发件人: beginners-boun...@haskell.org [mailto:beginners-boun...@haskell.org] 
代表 Tim Perry
发送时间: 2010年6月30日 15:26
收件人: beginners@haskell.org
主题: [Haskell-beginners] Cksum for StartProcess.exe

My virus scanner thinks StartProcess.exe is infected. I was hoping someone 
could post a valid cksum for it so I could compare. Thanks - Tim

Ps: "Haskell Platform\2010.1.0.0\winghci\StartProcess.exe"

Sent from my i(Wish-It-Worked-As-A)Phone


_______________________________________________
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



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

Message: 4
Date: Wed, 30 Jun 2010 15:56:00 +0530
From: rizwan hudda <rizwanhu...@gmail.com>
Subject: Re: [Haskell-beginners] shortening code
To: beginners@haskell.org
Message-ID:
        <aanlktil6oiugul6kxcg21tn2vkihv_vtmnvkbhmc9...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thanks Felipe Lessa for shortening the code :) and everyone for advice.

I have recently started learning haskell from the book
Learnyouahaskell - www.learnyouahaskell.com - I am done with the book except
for Bytestreams and randomness. Was trying to put my haskell skills to use
on the problems of this kind. My aim is to understand and practice haskell
and not WIN these code golf competitions! . So, please suggest me what are
the other books i can read ( and work through :) ), in general any good open
source projects to involve in, etc.. basically any advices to improve as a
haskell programmer.

Thanks in advance.


On Wed, Jun 30, 2010 at 9:50 AM, Lyndon Maydwell <maydw...@gmail.com> wrote:

> I agree. If you're aiming for really terse code, have a look at the
> J/K languages. These seem to win most golf-shootout type competitions.
> Haskell is more focused on expressiveness and abstraction.
>
> On Wed, Jun 30, 2010 at 11:25 AM, Michael Mossey <m...@alumni.caltech.edu>
> wrote:
> >
> >
> > rizwan hudda wrote:
> >>
> >> I have recently started learning haskell, and was trying to write a code
> >> for this problem http://www.spoj.pl/problems/KAMIL in haskell. The aim
> is to
> >> write a shortest possible code for the given task. I have previously
> solved
> >> this in c,c++,perl,python.My best was 57 characters using perl. So
> here's my
> >> code in HASKELL:
> >>
> >> main = interact $ unlines. map (show.foldl (\a x-> if null $ filter
> (==x)
> >> "TDLF" then a else a+a) 1) .lines
> >>
> >> It is 107 characters [ non white space and newline ]. I was interested
> in
> >> knowing how i could further optimize the size of this code.
> >
> > This kind of contest is fun, but I can't help thinking I hope you are
> > learning Haskell to appreciate the things that functional programming is
> > good at. Real-world Haskell is often more concise than other languages
> > because Haskell has mechanisms for eliminating unnecessary and redundant
> > code, but Haskell's strength is not winning "shortest program" contests.
> >
> > Mike
> > _______________________________________________
> > Beginners mailing list
> > Beginners@haskell.org
> > http://www.haskell.org/mailman/listinfo/beginners
> >
>



-- 
Thanks and regards
Rizwan A Hudda
http://sites.google.com/site/rizwanhudda
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20100630/5f683cc5/attachment-0001.html

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

Message: 5
Date: Wed, 30 Jun 2010 18:05:44 +0200
From: Christian Maeder <christian.mae...@dfki.de>
Subject: [Haskell-beginners] Re: shortening code
To: Felipe Lessa <felipe.le...@gmail.com>
Cc: beginners@haskell.org
Message-ID: <4c2b6b58.3060...@dfki.de>
Content-Type: text/plain; charset=UTF-8

Felipe Lessa schrieb:
>  main = interact $ unlines . map (show . (2^) . length . filter
> (`elem` "TDLF")) . lines
> 
> That's 70 non-whitespace characters.  This one-liner is pretty
> readable, probably more than the Perl one ;D.

May I toss in:

main = getLine >>= print . (2 ^) . length . filter (`elem` "TDLF")
  >> main

(60 non-whitespace characters)

C.


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

Message: 6
Date: Wed, 30 Jun 2010 11:51:39 -0500
From: Adolfo Builes <builes.ado...@googlemail.com>
Subject: [Haskell-beginners] Working with System.Timeout in Windows
To: beginners@haskell.org
Message-ID:
        <aanlktinksmn5jon4oa-gmb3iyleflnc9jiqpppcqn...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Guys,

I have been trying to do something with timeout of the System.Timeout but It
hasn't work in Windows. When I first built, it didn't work, so I went to
#haskell, and they told me that I should use -threaded, then after
recompiling with -threaded it didn't work either. Does someone one what
could probably be going on ?

I'm using it with simpleHTTP of Network.HTTP, basically what I want to do is
trying to get a source, but stop trying if I don't get an answer between a
certain amount of time, something like:

  r <- timeout timeOutTime $ simpleHTTP req

With curl for example I could use CURLOPT_TIMEOUT ( in Linux ), but I
haven't found a way to say something like that using simpleHTTP.

Cheers,

Adolfo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
http://www.haskell.org/pipermail/beginners/attachments/20100630/e7a54c1a/attachment-0001.html

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

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


End of Beginners Digest, Vol 24, Issue 42
*****************************************

Reply via email to