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. 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 <christopher.how...@frigidcode.com> Subject: [Haskell-beginners] unfamiliar syntax in class definition To: Haskell Beginners <beginners@haskell.org> Message-ID: <504741e5.50...@frigidcode.com> 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 <rodrigogribe...@gmail.com> Subject: Re: [Haskell-beginners] unfamiliar syntax in class definition To: Christopher Howard <christopher.how...@frigidcode.com> Cc: Haskell Beginners <beginners@haskell.org> 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 < christopher.how...@frigidcode.com> 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 > 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/20120905/8b454fa2/attachment-0001.htm> ------------------------------ Message: 3 Date: Wed, 5 Sep 2012 09:46:45 -0700 From: KC <kc1...@gmail.com> Subject: [Haskell-beginners] Haskell seems setup for iterative numerics; i.e. a standard example is Newton's method where lazy evaluation ... To: haskell-cafe <haskell-c...@haskell.org>, beginners@haskell.org 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 <kc1...@gmail.com> 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 <carter.schonw...@gmail.com> Cc: beginners@haskell.org, haskell-cafe <haskell-c...@haskell.org> 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 <carter.schonw...@gmail.com> 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 <kc1...@gmail.com> 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 >> haskell-c...@haskell.org >> http://www.haskell.org/mailman/listinfo/haskell-cafe > > -- -- Regards, KC ------------------------------ Message: 5 Date: Thu, 6 Sep 2012 09:39:30 +0700 From: Iwan Awaludin <awalu...@gmail.com> Subject: Re: [Haskell-beginners] Error Loading Stdm.lhs in Haskell platform 2012 To: Eugene Perederey <eugene.perede...@gmail.com> Cc: beginners@haskell.org 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 <eugene.perede...@gmail.com > 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 <awalu...@gmail.com> 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 > > Beginners@haskell.org > > 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 Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 51, Issue 9 ****************************************