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. gnuplot problem in ghci (Scott N. Walck)
2. Re: gnuplot problem in ghci (Daniel Fischer)
3. Re: foldl by foldr (John Bender)
4. Call for papers : MULTICONF-10, USA, July 2010 (John Edward)
----------------------------------------------------------------------
Message: 1
Date: Fri, 14 May 2010 13:48:20 -0400
From: "Scott N. Walck" <[email protected]>
Subject: [Haskell-beginners] gnuplot problem in ghci
To: [email protected]
Message-ID: <20100514174820.ga12...@walck-nsf>
Content-Type: text/plain; charset=us-ascii
Hello,
I've used the gnuplot package
http://hackage.haskell.org/package/gnuplot
before with great satisfaction. Now I have a new computer
(a Lenovo T400 with ubuntu 9.10) and I have a problem.
After I make a plot in ghci, using a command such as
plotFunc [] [0.0,0.1..10.0] cos
shown below, the keyboard no longer echos my input to
ghci. ghci will still do what I ask, as in computing 3+4
below, but I could not see the "3+4" until after I hit
return.
This is gnuplot 0.3.4.
Could anyone suggest an idea?
Thanks,
Scott
wa...@walck-nsf:~/courses/phy261/code$ gnuplot --version
gnuplot 4.2 patchlevel 5
wa...@walck-nsf:~/courses/phy261/code$ ghci
GHCi, version 6.12.1: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package ffi-1.0 ... linking ... done.
Prelude> :m +Graphics.Gnuplot.Simple
Prelude Graphics.Gnuplot.Simple> plotFunc [] [0.0,0.1..10.0] cos
Loading package syb-0.1.0.2 ... linking ... done.
Loading package base-3.0.3.2 ... linking ... done.
Loading package array-0.3.0.0 ... linking ... done.
Loading package containers-0.3.0.0 ... linking ... done.
Loading package monoid-transformer-0.0.2 ... linking ... done.
Loading package old-locale-1.0.0.2 ... linking ... done.
Loading package filepath-1.1.0.3 ... linking ... done.
Loading package old-time-1.0.0.3 ... linking ... done.
Loading package unix-2.4.0.0 ... linking ... done.
Loading package directory-1.0.1.0 ... linking ... done.
Loading package process-1.0.1.2 ... linking ... done.
Loading package time-1.1.4 ... linking ... done.
Loading package utility-ht-0.0.5.1 ... linking ... done.
Loading package gnuplot-0.3.4 ... linking ... done.
Prelude Graphics.Gnuplot.Simple> 3+4
7
Prelude Graphics.Gnuplot.Simple>
--
Scott N. Walck
Associate Professor of Physics
Lebanon Valley College
Annville, PA 17003
phone: 717-867-6153
fax: 717-867-6075
email: [email protected]
------------------------------
Message: 2
Date: Fri, 14 May 2010 20:21:22 +0200
From: Daniel Fischer <[email protected]>
Subject: Re: [Haskell-beginners] gnuplot problem in ghci
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
On Friday 14 May 2010 19:48:20, Scott N. Walck wrote:
> Hello,
>
> I've used the gnuplot package
>
> http://hackage.haskell.org/package/gnuplot
>
> before with great satisfaction. Now I have a new computer
> (a Lenovo T400 with ubuntu 9.10) and I have a problem.
> After I make a plot in ghci, using a command such as
>
> plotFunc [] [0.0,0.1..10.0] cos
>
> shown below, the keyboard no longer echos my input to
> ghci. ghci will still do what I ask, as in computing 3+4
> below, but I could not see the "3+4" until after I hit
> return.
>
> This is gnuplot 0.3.4.
Can't reproduce, ghc-6.12.2, gnuplot-0.3.4,
$ gnuplot --version
gnuplot 4.2 patchlevel 3
openSUSE 11.1
>
> Could anyone suggest an idea?
Sorry, no. Though it looks like a buffering problem.
>
> Thanks,
>
> Scott
------------------------------
Message: 3
Date: Fri, 14 May 2010 11:43:03 -0700
From: John Bender <[email protected]>
Subject: Re: [Haskell-beginners] foldl by foldr
To: [email protected]
Message-ID:
<[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
Matt,
I was having issues with the very same problem not too long ago and I wrote
a blog post about how it illustrates the power of partial application.
http://nickelcode.com/2009/04/12/haskell-learnings/
Sorry for the blog plug, I just didn't see any reason to copy and paste the
content. I make no claims about the quality of my writing but it does
include some basic expansions of the execution/thunks for understanding.
Best
On Fri, May 14, 2010 at 6:58 AM, Brent Yorgey <[email protected]>wrote:
> On Fri, May 14, 2010 at 12:29:01PM +1000, Matt Andrew wrote:
> >
> > The thing I am having trouble understanding is what the 'id'
> > function is doing in a function that expects 3 arguments and is
> > given 4 (foldr).
>
> "Number of arguments" in Haskell is a red herring. In fact, every
> Haskell function takes exactly *one* argument. Functions which appear
> to "take more than one argument" are really functions which take one
> argument and return another function (which takes the next argument,
> and so on). That's why the type of a "multi-argument" function is written
> like
>
> X -> Y -> Z -> ...
>
> which can also be written more explicitly as
>
> X -> (Y -> (Z -> ...))
>
> Polymorphic functions (like foldr) can also be deceiving as far as
> "number of arguments" goes. For example, consider id:
>
> id :: a -> a
>
> Looks like this takes only one argument, right? Well, what if a = (Int ->
> Int):
>
> id :: (Int -> Int) -> (Int -> Int)
>
> which can also be written
>
> id :: (Int -> Int) -> Int -> Int
>
> so now it looks like id "takes two arguments" -- an (Int -> Int)
> function, and an Int. Of course, the real answer is that id always
> takes exactly one argument, just like any other function; but
> sometimes that argument may itself be a function, in which case
> the result can be applied to additional argument(s).
>
> -Brent
> _______________________________________________
> 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/20100514/2a615edb/attachment-0001.html
------------------------------
Message: 4
Date: Fri, 14 May 2010 12:23:08 -0700 (PDT)
From: John Edward <[email protected]>
Subject: [Haskell-beginners] Call for papers : MULTICONF-10, USA, July
2010
To: [email protected]
Message-ID: <[email protected]>
Content-Type: text/plain; charset="utf-8"
It
would be highly appreciated if you could share this announcement with your
colleagues, students and individuals whose research is in computer science,
computer engineering, information science and related areas.
Call
for papers : MULTICONF-10, USA, July 2010
The
2010 multi-conference (MULTICONF-10) (website: http://www.PromoteResearch.org )
will
be held during July 12-14, 2010 in Orlando, Florida, USA. The primary goal of
MULTICONF is to promote research and developmental activities in computer
science, information technology, control engineering, and related fields.
Another goal is to promote the dissemination of research to a multidisciplinary
audience and to facilitate communication among researchers, developers,
practitioners in different fields. The following conferences are planned to be
organized as part of MULTICONF-10.
⢠International
Conference on Artificial Intelligence and Pattern Recognition (AIPR-10)
⢠International
Conference on Automation, Robotics and Control Systems (ARCS-10)
⢠International
Conference on Bioinformatics, Computational Biology, Genomics and
Chemoinformatics (BCBGC-10)
⢠International
Conference on Computer Communications and Networks (CCN-10)
⢠International
Conference on Enterprise Information Systems and Web Technologies (EISWT-10)
⢠International
Conference on High Performance Computing Systems (HPCS-10)
⢠International
Conference on Information Security and Privacy (ISP-10)
⢠International
Conference on Image and Video Processing and Computer Vision (IVPCV-10)
⢠International
Conference on Software Engineering Theory and Practice (SETP-10)
⢠International
Conference on Theoretical and Mathematical Foundations of Computer Science
(TMFCS-10)
MULTICONF-10
will be held at Imperial Swan Hotel and Suites. It is a full-service resort
that puts you in the middle of the fun!
Located 1/2 block south of the famed International Drive, the hotel is just
minutes from great entertainment like Walt Disney World® Resort, Universal
Studios and Sea World Orlando. Guests can enjoy free scheduled transportation
to these theme parks, as well as spacious accommodations, outdoor pools and
on-site dining â all situated on 10 tropically landscaped acres. Here, guests
can experience a full-service resort with discount hotel pricing in Orlando.
Please
see the website http://www.PromoteResearch.org for more details.
Sincerely
John
Edward
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://www.haskell.org/pipermail/beginners/attachments/20100514/c6702105/attachment.html
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 23, Issue 19
*****************************************