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. unfamiliar syntax in class definition (Christopher Howard)
2. Re: unfamiliar syntax in class definition (Rodrigo Ribeiro)
3. Haskell seems setup for iterative numerics; i.e. a standard
example is Newton's method where lazy evaluation ... (KC)
4. Re: [Haskell-cafe] Haskell seems setup for iterative
numerics; i.e. a standard example is Newton's method where lazy
evaluation ... (KC)
5. Re: Error Loading Stdm.lhs in Haskell platform 2012
(Iwan Awaludin)
----------------------------------------------------------------------
Message: 1
Date: Wed, 05 Sep 2012 04:13:25 -0800
From: Christopher Howard <[email protected]>
Subject: [Haskell-beginners] unfamiliar syntax in class definition
To: Haskell Beginners <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="iso-8859-1"
The MonadState class is defined as:
quote:
--------
class Monad m => MonadState s m | m -> s where
...etc...
--------
Please explain the part "| m -> s", that is, the use of the pipe symbol
and the right arrow symbol which follow "MonadState s m".
--
frigidcode.com
indicium.us
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 554 bytes
Desc: OpenPGP digital signature
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120905/0d54c145/attachment-0001.pgp>
------------------------------
Message: 2
Date: Wed, 5 Sep 2012 09:11:22 -0300
From: Rodrigo Ribeiro <[email protected]>
Subject: Re: [Haskell-beginners] unfamiliar syntax in class definition
To: Christopher Howard <[email protected]>
Cc: Haskell Beginners <[email protected]>
Message-ID:
<caoviy-pgpzely4tbgyhmytqoajqbpqnnzlwvm6bdvk225v6...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
Hi,
This is a functional dependency:
http://www.haskell.org/haskellwiki/Functional_dependencies
[ ]s
Rodrigo
On Wed, Sep 5, 2012 at 9:13 AM, Christopher Howard <
[email protected]> wrote:
> The MonadState class is defined as:
>
> quote:
> --------
> class Monad m => MonadState s m | m -> s where
> ...etc...
> --------
>
> Please explain the part "| m -> s", that is, the use of the pipe symbol
> and the right arrow symbol which follow "MonadState s m".
>
>
> --
> frigidcode.com
> indicium.us
>
>
> _______________________________________________
> 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/20120905/8b454fa2/attachment-0001.htm>
------------------------------
Message: 3
Date: Wed, 5 Sep 2012 09:46:45 -0700
From: KC <[email protected]>
Subject: [Haskell-beginners] Haskell seems setup for iterative
numerics; i.e. a standard example is Newton's method where lazy
evaluation ...
To: haskell-cafe <[email protected]>, [email protected]
Message-ID:
<camlkxyk0d-vr75yrfn-xrnyw7447bnr11o1u4gagjpsikdq...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
separates control from computation.
It seems as if Haskell would be better for iterative matrix methods
rather than direct calculation.
--
--
Regards,
KC
------------------------------
Message: 4
Date: Wed, 5 Sep 2012 13:10:52 -0700
From: KC <[email protected]>
Subject: Re: [Haskell-beginners] [Haskell-cafe] Haskell seems setup
for iterative numerics; i.e. a standard example is Newton's method
where lazy evaluation ...
To: Carter Schonwald <[email protected]>
Cc: [email protected], haskell-cafe <[email protected]>
Message-ID:
<camlkxymrv9wyboo4orsgqhlqw-x_jm1ptcp6txmelqc43io...@mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1
The REPA package/library doesn't have LU factorization, eigenvalues, etc.
On Wed, Sep 5, 2012 at 12:59 PM, Carter Schonwald
<[email protected]> wrote:
> Hello KC,
> you should check out the Repa library then and see how it works for you.
> Cheers
> -Carter
>
> On Wed, Sep 5, 2012 at 12:46 PM, KC <[email protected]> wrote:
>>
>> separates control from computation.
>>
>> It seems as if Haskell would be better for iterative matrix methods
>> rather than direct calculation.
>>
>> --
>> --
>> Regards,
>> KC
>>
>> _______________________________________________
>> Haskell-Cafe mailing list
>> [email protected]
>> http://www.haskell.org/mailman/listinfo/haskell-cafe
>
>
--
--
Regards,
KC
------------------------------
Message: 5
Date: Thu, 6 Sep 2012 09:39:30 +0700
From: Iwan Awaludin <[email protected]>
Subject: Re: [Haskell-beginners] Error Loading Stdm.lhs in Haskell
platform 2012
To: Eugene Perederey <[email protected]>
Cc: [email protected]
Message-ID:
<cahd5so4edgu5gzf3rlhpyewurogrul2tdn7r3efhaphu1_w...@mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"
OK, I changed the line code as suggested. It is successfully compiled.
But it still has one warning:
stdm.lhs:38:10:
Warning: In the use of `catch'
(imported from Prelude, but defined in System.IO.Error):
Deprecated: "Please use the new exceptions variant,
Control.Exception.catch"
I don't know the effect but as long as I can use it for my course, I don't
mind. Thank you for your help.
On Tue, Sep 4, 2012 at 1:46 PM, Eugene Perederey <[email protected]
> wrote:
> What version of ghc are you using?
> In recent versions ghc doesn't support pattern matching of expressions
> like (n+1).
> You can rewrite that factorial function as
> factorial n = n * factorial (n-1)
> instead.
>
> best,
> Eugene
>
> On 3 September 2012 22:08, Iwan Awaludin <[email protected]> wrote:
> > Dear Sir/Madam
> > I Installed Haskell Platform 2012.2.0.0 for Windows and try to load
> Stdm.lhs
> > which is downloaded from
> > http://www.dcs.gla.ac.uk/~jtod/discrete-mathematics/Stdm.lhs
> > I have this error:
> > stdm.lhs:1160:14: Parse error in pattern: n + 1
> > Failed, modules loaded: none.
> >
> > Is there anything I should do to make it right?
> > Thank you.
> >
> > --
> > Iwan Awaludin
> >
> >
> >
> >
> > _______________________________________________
> > Beginners mailing list
> > [email protected]
> > http://www.haskell.org/mailman/listinfo/beginners
> >
>
--
Iwan Awaludin
http://www.schoolofuniverse.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://www.haskell.org/pipermail/beginners/attachments/20120906/9c246d86/attachment-0001.htm>
------------------------------
_______________________________________________
Beginners mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/beginners
End of Beginners Digest, Vol 51, Issue 9
****************************************