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. Re: Category Theory (Matt Andrew) 2. database: haskelldb, hdbc, hsql (prad) 3. docstring equivalent (prad) 4. Hint on exercise from Real World Haskell (Chris Saunders) 5. Re: Hint on exercise from Real World Haskell (MAN) 6. Re: Hint on exercise from Real World Haskell (Daniel Fischer) 7. Re: Hint on exercise from Real World Haskell (prad) 8. Re: docstring equivalent (Stephen Tetley) 9. Re: docstring equivalent (prad) 10. Functional Programming in Finance (Syed Imran) ---------------------------------------------------------------------- Message: 1 Date: Tue, 29 Jun 2010 09:15:49 +1000 From: Matt Andrew <mjsa...@gmail.com> Subject: Re: [Haskell-beginners] Category Theory To: Paul Higham <polyg...@mac.com> Cc: beginners@haskell.org Message-ID: <m1vd92px3u.wl%mjsa...@gmail.com> Content-Type: text/plain; charset=US-ASCII Hi Paul, Thanks a lot for the reply, it's been very helpful in clarifying some of the stuff I was struggling with. Appreciate you taking the time to answer. Matt ------------------------------ Message: 2 Date: Mon, 28 Jun 2010 16:56:05 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] database: haskelldb, hdbc, hsql To: haskellbeginners <beginners@haskell.org> Message-ID: <20100628165605.2ed03...@gom> Content-Type: text/plain; charset=US-ASCII after spending some time looking into db access through haskell, it seems there are these 3. realworld haskell showed be how to use hdbc and sqlite3 (and i almost got things working there) can't figure out what hsql is yet though i suspect it is similar to hdbc. haskelldb looks like it lets you code in something that doesn't resemble sql. it also seems to sit on top of the other two. so my question is which one should i persue and why? most of my stuff will be done on postgresql (though i'm not averse to using sqlite3 for smaller things). -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 3 Date: Mon, 28 Jun 2010 17:21:56 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] docstring equivalent To: haskellbeginners <beginners@haskell.org> Message-ID: <20100628172156.4871f...@gom> Content-Type: text/plain; charset=US-ASCII in python you can get info about a function or class because they are docstringed. is there some equivalent mechanism for haskell usable in ghci? -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 4 Date: Mon, 28 Jun 2010 22:45:23 -0400 From: "Chris Saunders" <e...@mountaincable.net> Subject: [Haskell-beginners] Hint on exercise from Real World Haskell To: "Haskell - Beginners" <beginners@haskell.org> Message-ID: <7fbe37d3fd2f486da0a832b255290...@chrispc> Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original I have been working on the exercises from chapter 1 of Real World Haskell. I seem to be stuck on a solution to: 4.Modify the WC.hs example again, to print the number of characters in a file. I'm hoping to get a hint for this one. I may request a solution later but for now I would prefer just a hint. Regards Chris Saunders ------------------------------ Message: 5 Date: Mon, 28 Jun 2010 23:58:55 -0300 From: MAN <elviotoccal...@gmail.com> Subject: Re: [Haskell-beginners] Hint on exercise from Real World Haskell To: Chris Saunders <e...@mountaincable.net> Cc: Haskell - Beginners <beginners@haskell.org> Message-ID: <1277780335.3028.4.ca...@dy-book> Content-Type: text/plain; charset="UTF-8" When you read a file (System.IO.readFile, for example) its content is returned as a String... consider: type String = [Char] What function would you use to count the elements in a list? El lun, 28-06-2010 a las 22:45 -0400, Chris Saunders escribió: > I have been working on the exercises from chapter 1 of Real World Haskell. > I seem to be stuck on a solution to: > > 4.Modify the WC.hs example again, to print the number of characters in a > file. > > I'm hoping to get a hint for this one. I may request a solution later but > for now I would prefer just a hint. > > Regards > Chris Saunders > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners ------------------------------ Message: 6 Date: Tue, 29 Jun 2010 05:02:43 +0200 From: Daniel Fischer <daniel.is.fisc...@web.de> Subject: Re: [Haskell-beginners] Hint on exercise from Real World Haskell To: beginners@haskell.org Message-ID: <201006290502.43333.daniel.is.fisc...@web.de> Content-Type: text/plain; charset="iso-8859-1" On Tuesday 29 June 2010 04:45:23, Chris Saunders wrote: > I have been working on the exercises from chapter 1 of Real World > Haskell. I seem to be stuck on a solution to: > > 4.Modify the WC.hs example again, to print the number of characters in a > file. > > I'm hoping to get a hint for this one. I may request a solution later > but for now I would prefer just a hint. Have you done ex. 3: The words function counts the number of words in a string. Modify the WC.hs example to count the number of words in a file. ? Originally, WC uses lines to break a String into a list of lines. Then you use words to break a String into a list of words. Now you want to make a list of characters out of the String. How do you do that again? > > Regards > Chris Saunders > ------------------------------ Message: 7 Date: Mon, 28 Jun 2010 21:31:19 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] Re: Hint on exercise from Real World Haskell To: beginners@haskell.org Message-ID: <20100628213119.0a7a2...@gom> Content-Type: text/plain; charset=US-ASCII On Mon, 28 Jun 2010 22:45:23 -0400 "Chris Saunders" <e...@mountaincable.net> wrote: > print the number of characters in a > file ... I'm hoping to get a hint for this one. > 1. read in the file - which will be (eventually) a bunch of chars 2. count the chars by adding 1 to the count of the chars less one char (can be done with pattern matching x:xs and then using just xs) -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 8 Date: Tue, 29 Jun 2010 07:48:21 +0100 From: Stephen Tetley <stephen.tet...@gmail.com> Subject: Re: [Haskell-beginners] docstring equivalent To: prad <p...@towardsfreedom.com> Cc: haskellbeginners <beginners@haskell.org> Message-ID: <aanlktilkz4hdyjaovar0zi_1z7ju7snbjxztiveqq...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hello Prad The info command will give you details of a function - its type signature and the module where it is defined, its fixity if it is an infix function: Prelude> :info length length :: [a] -> Int -- Defined in GHC.List The shorthand is :i Prelude> :i (>>=) class Monad m where (>>=) :: m a -> (a -> m b) -> m b ... -- Defined in GHC.Base infixl 1 >>= For constructors, info will tell you which data type the constructor belongs to and the module where it is defined: Prelude> :i Just data Maybe a = ... | Just a -- Defined in Data.Maybe There is no mechanism like docstring in Haskell though - the information displayed by the info command is not customizable. Best wishes Stephen ------------------------------ Message: 9 Date: Mon, 28 Jun 2010 23:57:43 -0700 From: prad <p...@towardsfreedom.com> Subject: [Haskell-beginners] Re: docstring equivalent To: beginners@haskell.org Message-ID: <20100628235743.34aed...@gom> Content-Type: text/plain; charset=US-ASCII On Tue, 29 Jun 2010 07:48:21 +0100 Stephen Tetley <stephen.tet...@gmail.com> wrote: > There is no mechanism like docstring in Haskell though > that's what i thought. thx for the scoop on info though, stephen. i found this site quite helpful for lookups: http://www.zvon.org/comp/r/ref-Haskell.html# (lots of good examples here too quite often!) and hackageDB does provide a lot of info on the specific functions that are there: http://hackage.haskell.org/packages/hackage.html -- In friendship, prad ... with you on your journey Towards Freedom http://www.towardsfreedom.com (website) Information, Inspiration, Imagination - truly a site for soaring I's ------------------------------ Message: 10 Date: Mon, 28 Jun 2010 14:45:15 +0100 From: Syed Imran <s.im...@carringtonfox.com> Subject: [Haskell-beginners] Functional Programming in Finance To: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <38f4bf79effc994494a04a6ca5e31bb04f35d8a...@pal-exc-1.palmarium.local> Content-Type: text/plain; charset="us-ascii" Hi, I hope you are well. I am a Head Hunter in the City of London, I have recently joined the Haskell-Cafe forum. I am currently looking for someone with a strong computer science or mathematical background to work with some of the leading financial institutions in London and the USA. Functional Programming is seeing a significant amount of investment with a few of our clients, who are using Haskell as well as F# (and some also use OCaml). I appreciate you may not be actively looking to work in the investment banking arena at present however I would be keen to touch base with you should you be interest now or in the future. Please could you let me know your current situation and also forward me a copy of your CV and contact number so as I can call. Look forward to hearing from you. Kindest Regards Syed Imran Consultant Carrington Fox UK Ltd. 11 Tokenhouse Yard London EC2R 7AS Tel: +44 207 073 2626 Fax: +44 207 073 2627 s.im...@carringtonfox.com<mailto:s.im...@carringtonfox.com> www.carringtonfox.com<http://www.carringtonfox.com> ________________________________ Carrington Fox UK Ltd. 11 Tokenhouse Yard London EC2R 7AS Tel: +44 207 073 2626 Fax: +44 207 073 2627 www.carringtonfox.com Privileged/Confidential Information may be contained in this message. If you are not the addressee indicated in this message (or responsible for delivery of the message to such person), you may not copy or deliver this message to anyone. Please advise immediately if you or your employer do not consent to Internet email for messages of this kind. Opinions, conclusions and other information in this message that do not relate to the official business of my firm shall be understood as neither given nor endorsed by it. Carrington Fox reserves the right to share information between companies within our group. Carrington Fox UK Limited. Registered in England: 04373672 Registered Office: 11 Tokenhouse Yard, London, EC2R 7AS. VAT Number: 798-4652-61 Terms and Conditions of Business available on our web-site. -------------- next part -------------- An HTML attachment was scrubbed... URL: http://www.haskell.org/pipermail/beginners/attachments/20100628/816e0e8f/attachment.html ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 24, Issue 40 *****************************************