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. Eg. (willie ekaputra)
2. Re: Eg. (Mateusz Kowalczyk)
3. Introduction to FFI by wrapping MurmurHash3 (Courtney Robinson)
4. Re: Just started working with Haskell. Need some help
(Pyro Crane)
----------------------------------------------------------------------
Message: 1
Date: Sun, 19 Jan 2014 13:06:39 +0100
From: willie ekaputra <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Eg.
Message-ID:
<CAMCAAFfezOg6ibY+zSTcaBD2evoHW8FMtsFXtqp84BehxEo=b...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Eg. how to make the translation formula ?
u take a coordinate and multiply it with p Element R, so that it is
translated , like 1, 3 to 2, 6 , I use a 2 as multiplicator , which is from
real numbers.How to express this real number ?That is why " any number will
just do ! "
Regards , Wili.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140119/416ca16d/attachment-0001.html>
------------------------------
Message: 2
Date: Sun, 19 Jan 2014 12:24:17 +0000
From: Mateusz Kowalczyk <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Eg.
Message-ID: <[email protected]>
Content-Type: text/plain; charset=windows-1252
On 19/01/14 12:06, willie ekaputra wrote:
> Eg. how to make the translation formula ?
> u take a coordinate and multiply it with p Element R, so that it is
> translated , like 1, 3 to 2, 6 , I use a 2 as multiplicator , which is from
> real numbers.How to express this real number ?That is why " any number will
> just do ! "
> Regards , Wili.
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
Hi again,
A (limited precision) Real is sometimes known as a Double and that's
what it is in Haskell. So what you're asking is how to take an
arbitrary Double and translate your co-ordinate by it. Simply, you want
a function.
So if your co-ordinate is just a pair of two other Doubles (reals),
you can do:
type Coord = (Double, Double) -- Our co-ordinate
-- Function that takes a Double and Coord and translates the Coord by
-- the Double
translateCoord s (x, y) = (s * x, s * y)
You can then use it like: ?translateCoord 2 (1, 3)? to give you ?(2, 6)?.
PS: It's much easier for us to follow if you keep your conversation in
a single thread.
--
Mateusz K.
------------------------------
Message: 3
Date: Sun, 19 Jan 2014 12:56:31 +0000
From: Courtney Robinson <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: [Haskell-beginners] Introduction to FFI by wrapping
MurmurHash3
Message-ID:
<cago6xjbpnacddz1g9itnsyongdgbbn5_e5e8gtf74mlvydb...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Just thought I'd share a lib I've put together and the blog post I wrote
about it
http://haskell.zcourts.com/ffi/2014/01/19/haskell-foerign-function-interface-murmurhash3/
The package is available on Hackage http://hackage.haskell.org/package/Dish
And API docs for MurmurHash3 at
http://hackage.haskell.org/package/Dish-0.0.0.4/docs/Data-Dish-Murmur3.html
It is a wrapper around MurmurHash3 at the moment but I've got some more
hash related utilities I'll be adding.
I'm still pretty new to Haskell so would appreciate any feedback or
pointers on any gotchas I may have overlooked.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140119/7b926545/attachment-0001.html>
------------------------------
Message: 4
Date: Mon, 20 Jan 2014 02:06:35 -0500 (EST)
From: Pyro Crane <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hello again.
Thank you all for your very helpful replies (below)
Here is the error I got when I tried to run my script :
Could not find module `Graphics.GD'
Locations searched:
Graphics/GD.hs
Graphics/GD.lhs
As with the previous errors, I went on Google, to find out which module and/or
package I needed to install.
Apparently, I need something called "GD"
When I tried : cabal install gd
I got the following :
Resolving dependencies...
Configuring gd-3000.7.3...
cabal-1.16.0.2: Missing dependencies on foreign libraries:
* Missing (or bad) header file: gd.h
* Missing C libraries: gd, expat
Failed to install gd-3000.7.3
cabal-1.16.0.2: Error: some packages failed to install:
gd-3000.7.3 failed during the configure step. The exception was: ExitFailure 1
Upon further inquiries via google, I found somewhere the following :
This problem can usually be solved by installing the system packages that
provide these libraries (you may need the "-dev" versions). If the libraries
are already installed but in a non-standard location then you can use the
flags --extra-include-dirs= and --extra-lib-dirs= to specify where they are.
I thought I did this already.
But, apparently, I did something wrong??
-----Original Message-----
From: beginners-request <[email protected]>
To: beginners <[email protected]>
Sent: Sat, Jan 18, 2014 11:35 pm
Subject: Beginners Digest, Vol 67, Issue 19
Message: 1
Date: Sat, 18 Jan 2014 12:25:01 -0500 (EST)
From: Pyro Crane <[email protected]>
To: [email protected]
Subject: [Haskell-beginners] Just started working with Haskell. Need
some help
Message-ID: <[email protected]>
Content-Type: text/plain; charset="us-ascii"
Hi,
I just started working with Haskell
Running it on a RHEL linux operating system
I was able to download and install it, along with libraries and packages (or,
at least, what I thought were the libraries and packages)
But, when I try to run a simple script, I keep getting the error : "Could not
find module XXXXXX"..............
I understand what this error means ---- there is a package/library missing.
I tried using the "Cabal Update" command, but this did not solve the problem.
So, I am now fixing this problem the primitive way, as follows :
(a) I use Google to first find out what the missing module is
(b) then, based on what google says, I am able to determine the name of the
actual package that needs to be installed
(c) I use "Cabal Install" to install the package
(d) I try to run the script again
(e) I get the same error, but this time, it cannot find a different module
(f) I go back to Google to locate the missing module
etc, etc, etc, etc
Obviously, this is as slow as it is ridiculous...............
especially when one considers that there are probably hundreds of these
modules/packages
And, now, I've come up against a module/package, which I am unable to locate
in
Google. It's missing from my installation, and Google does not know what it
is,
or where I can find it
Is there any way to simply install ALL required packages??? I thought I
already did this, but obviously I missed something
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140118/41c15f42/attachment-0001.html>
------------------------------
Message: 2
Date: Sat, 18 Jan 2014 15:29:42 -0500
From: David McBride <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID:
<can+tr42wyepd90e5von-vfstvhxn7t6fwa9cm5vaaq_ut-z...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Look at the .cabal file for the package you are trying to compile. It will
list all the dependencies. If there is no cabal file you are out of luck.
You'll just have to find all the dependencies yourself.
I will say it is a bit easier to find libraries via hayoo (
http://holumbus.fh-wedel.de/hayoo/hayoo.html) than in straight google.
On Sat, Jan 18, 2014 at 12:25 PM, Pyro Crane <[email protected]> wrote:
>
> Hi,
>
> I just started working with Haskell
>
> Running it on a RHEL linux operating system
>
> I was able to download and install it, along with libraries and packages
> (or, at least, what I thought were the libraries and packages)
>
> But, when I try to run a simple script, I keep getting the error : "*Could
> not find module XXXXXX*"..............
>
> I understand what this error means ---- there is a package/library missing.
>
> I tried using the "Cabal Update" command, but this did not solve the
> problem.
>
> So, I am now fixing this problem the primitive way, as follows :
>
>
>
>
>
>
>
>
>
>
>
>
> *(a) I use Google to first find out what the missing module is (b) then,
> based on what google says, I am able to determine the name of the actual
> package that needs to be installed (c) I use "Cabal Install" to install
> the package (d) I try to run the script again (e) I get the same error,
> but this time, it cannot find a different module (f) I go back to Google
> to locate the missing module *
>
> etc, etc, etc, etc
>
>
> Obviously, this is as slow as it is ridiculous...............
> especially when one considers that there are probably hundreds of these
> modules/packages
>
> And, now, I've come up against a module/package, which I am unable to
> locate in Google. It's missing from my installation, and Google does not
> know what it is, or where I can find it
>
> Is there any way to simply install ALL required packages??? I thought I
> already did this, but obviously I missed something
>
> Thanks
>
> _______________________________________________
> 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/20140118/293ad831/attachment-0001.html>
------------------------------
Message: 3
Date: Sat, 18 Jan 2014 20:30:16 +0000
From: Courtney Robinson <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID:
<CAGo6xJZ+V=nf+voe2+tyltwcjw6nongzxp4efayjkuxvxej...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
How did you install Haskell?
How did you create your project?
If you haven't done so I'd suggest installing using a package from say
http://www.haskell.org/platform/
That download will install everything you need to get going.
Did you create your project using cabal init?
Maybe copy and paste the error
On Sat, Jan 18, 2014 at 5:25 PM, Pyro Crane <[email protected]> wrote:
>
> Hi,
>
> I just started working with Haskell
>
> Running it on a RHEL linux operating system
>
> I was able to download and install it, along with libraries and packages
> (or, at least, what I thought were the libraries and packages)
>
> But, when I try to run a simple script, I keep getting the error : "*Could
> not find module XXXXXX*"..............
>
> I understand what this error means ---- there is a package/library missing.
>
> I tried using the "Cabal Update" command, but this did not solve the
> problem.
>
> So, I am now fixing this problem the primitive way, as follows :
>
>
>
>
>
>
>
>
>
>
>
>
> *(a) I use Google to first find out what the missing module is (b) then,
> based on what google says, I am able to determine the name of the actual
> package that needs to be installed (c) I use "Cabal Install" to install
> the package (d) I try to run the script again (e) I get the same error,
> but this time, it cannot find a different module (f) I go back to Google
> to locate the missing module *
>
> etc, etc, etc, etc
>
>
> Obviously, this is as slow as it is ridiculous...............
> especially when one considers that there are probably hundreds of these
> modules/packages
>
> And, now, I've come up against a module/package, which I am unable to
> locate in Google. It's missing from my installation, and Google does not
> know what it is, or where I can find it
>
> Is there any way to simply install ALL required packages??? I thought I
> already did this, but obviously I missed something
>
> Thanks
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
>
>
--
Courtney Robinson
[email protected]
http://crlog.info
07535691628 (No private #s)
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140118/558d0740/attachment-0001.html>
------------------------------
Message: 4
Date: Sat, 18 Jan 2014 22:26:07 +0100
From: Emanuel Koczwara <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID: <[email protected]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Hello,
Try to install haskell platform from red hat repositories. I'm using
this approach with debian and it works.
Regards,
Emanuel
------------------------------
Message: 5
Date: Sat, 18 Jan 2014 21:28:43 +0000
From: Sean Charles <[email protected]>
To: The Haskell-Beginners Mailing List - Discussion of primarily
beginner-level topics related to Haskell <[email protected]>
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"
You have been blocked
You have been blocked from the server due to too many failed connection
attempts. Please contact the support centre quoting this message with your IP
address:
80.235.144.206
I guess that?s a no then???????
On 18 Jan 2014, at 21:26, Emanuel Koczwara <[email protected]> wrote:
> Hello,
>
> Try to install haskell platform from red hat repositories. I'm using this
approach with debian and it works.
>
> Regards,
> Emanuel
>
> _______________________________________________
> 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/20140118/24dce336/attachment-0001.html>
------------------------------
Message: 6
Date: Sat, 18 Jan 2014 22:35:37 +0100
From: Emanuel Koczwara <[email protected]>
To: [email protected]
Subject: Re: [Haskell-beginners] Just started working with Haskell.
Need some help
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"
Hello,
W dniu 18.01.2014 22:28, Sean Charles pisze:
>
>
> You have been blocked
>
> You have been blocked from the server due to too many failed
> connection attempts. Please contact the support centre quoting this
> message with your IP address:
>
> *80.235.144.206*
>
>
>
> I guess that's a no then.....................
>
>
> On 18 Jan 2014, at 21:26, Emanuel Koczwara <[email protected]
> <mailto:[email protected]>> wrote:
>
>> Hello,
>>
>> Try to install haskell platform from red hat repositories. I'm using
>> this approach with debian and it works.
>>
>> Regards,
>> Emanuel
>>
>> _______________________________________________
>> Beginners mailing list
>> [email protected] <mailto:[email protected]>
>> http://www.haskell.org/mailman/listinfo/beginners
>
>
>
> _______________________________________________
> Beginners mailing list
> [email protected]
> http://www.haskell.org/mailman/listinfo/beginners
What?
Regards,
Emanuel
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140118/a8da64e3/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 67, Issue 19
*****************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20140120/a6680821/attachment.html>
------------------------------
Subject: Digest Footer
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
------------------------------
End of Beginners Digest, Vol 67, Issue 21
*****************************************