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. module not found (Tyler Hayes) 2. Re: module not found (Antoine Latter) 3. Re: module not found (Tyler Hayes) 4. Re: module not found (Daniel Fischer) 5. Re: module not found (David McBride) 6. Re: module not found (Daniel Fischer) 7. quickCheck generation question (Joe Van Dyk) 8. sorting (kolli kolli) 9. Re: sorting (Felipe Almeida Lessa) 10. Re: sorting (kolli kolli) 11. Re: sorting (Tom Murphy) ---------------------------------------------------------------------- Message: 1 Date: Fri, 07 Oct 2011 14:38:42 -0700 From: Tyler Hayes <tylerhaye...@gmail.com> Subject: [Haskell-beginners] module not found To: beginners@haskell.org Message-ID: <1318023522.1932.6.camel@Hodges> Content-Type: text/plain; charset="UTF-8" Hello, Very beginner here. I downloaded the Haskore package with cabal: cabal install haskore but when I import Haskore in my source, I get: Could not find module `Haskore' I've got to be missing something. Thanks, Tyler ------------------------------ Message: 2 Date: Fri, 7 Oct 2011 16:49:07 -0500 From: Antoine Latter <aslat...@gmail.com> Subject: Re: [Haskell-beginners] module not found To: Tyler Hayes <tylerhaye...@gmail.com> Cc: beginners@haskell.org Message-ID: <cakjsnqhy1spadtqotzzodtjndaakw+oznaagkhg5syg45ej...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 On Fri, Oct 7, 2011 at 4:38 PM, Tyler Hayes <tylerhaye...@gmail.com> wrote: > Hello, > > Very beginner here. ?I downloaded the Haskore package with cabal: > > cabal install haskore > > but when I import Haskore in my source, I get: > > Could not find module `Haskore' > > I've got to be missing something. > > Thanks, > Tyler Hello! I don't know much about Haskore, but the package doesn't contain a module titled "Haskore". This page has a listing of a ll of the public modules in the package: http://hackage.haskell.org/package/haskore There is a package called 'haskore-vintage', which attempts to preserve an older version of the library: http://hackage.haskell.org/package/haskore-vintage Perhaps that's what you're looking for? Antoine > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > ------------------------------ Message: 3 Date: Fri, 07 Oct 2011 14:51:26 -0700 From: Tyler Hayes <tylerhaye...@gmail.com> Subject: Re: [Haskell-beginners] module not found To: Antoine Latter <aslat...@gmail.com> Cc: beginners@haskell.org Message-ID: <1318024286.1932.7.camel@Hodges> Content-Type: text/plain; charset="UTF-8" > There is a package called 'haskore-vintage', which attempts to > preserve an older version of the library: > > http://hackage.haskell.org/package/haskore-vintage > > Perhaps that's what you're looking for? Yep, that was it, thanks a million! - Tyler > > Antoine > > > > > > > _______________________________________________ > > Beginners mailing list > > Beginners@haskell.org > > http://www.haskell.org/mailman/listinfo/beginners > > ------------------------------ Message: 4 Date: Sat, 8 Oct 2011 00:01:32 +0200 From: Daniel Fischer <daniel.is.fisc...@googlemail.com> Subject: Re: [Haskell-beginners] module not found To: beginners@haskell.org Message-ID: <201110080001.32520.daniel.is.fisc...@googlemail.com> Content-Type: Text/Plain; charset="iso-8859-1" On Friday 07 October 2011, 23:38:42, Tyler Hayes wrote: > Hello, > > Very beginner here. I downloaded the Haskore package with cabal: > > cabal install haskore > > but when I import Haskore in my source, I get: > > Could not find module `Haskore' There's no module Haskore in the haskore package on hackage, it has lots of modules like Haskore.Basic.Duration but no wrapper module that collects all. It's gone very far from Paul Hudak's original Haskore. If you're learning from a book or paper describing Hudak's Haskore, you should download haskore-vintage. $ cabal install haskore-vintage > > I've got to be missing something. > > Thanks, > Tyler ------------------------------ Message: 5 Date: Fri, 7 Oct 2011 18:12:57 -0400 From: David McBride <toa...@gmail.com> Subject: Re: [Haskell-beginners] module not found To: Daniel Fischer <daniel.is.fisc...@googlemail.com> Cc: beginners@haskell.org Message-ID: <can+tr40ujcgq5m-rk1uinxjotakd6cc8reag8-0yfczwyyb...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 I feel someone should also point out the cabal info command. cabal info haskore And boy haskore sure isn't shy about exporting modules On Fri, Oct 7, 2011 at 6:01 PM, Daniel Fischer <daniel.is.fisc...@googlemail.com> wrote: > On Friday 07 October 2011, 23:38:42, Tyler Hayes wrote: >> Hello, >> >> Very beginner here. ?I downloaded the Haskore package with cabal: >> >> cabal install haskore >> >> but when I import Haskore in my source, I get: >> >> Could not find module `Haskore' > > There's no module Haskore in the haskore package on hackage, it has lots of > modules like > > Haskore.Basic.Duration > > but no wrapper module that collects all. > > It's gone very far from Paul Hudak's original Haskore. > > If you're learning from a book or paper describing Hudak's Haskore, you > should download haskore-vintage. > > $ cabal install haskore-vintage > >> >> I've got to be missing something. >> >> Thanks, >> Tyler > > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > ------------------------------ Message: 6 Date: Sat, 8 Oct 2011 00:23:01 +0200 From: Daniel Fischer <daniel.is.fisc...@googlemail.com> Subject: Re: [Haskell-beginners] module not found To: dmcbr...@neondsl.com Cc: beginners@haskell.org Message-ID: <201110080023.01653.daniel.is.fisc...@googlemail.com> Content-Type: Text/Plain; charset="iso-8859-1" On Saturday 08 October 2011, 00:12:57, David McBride wrote: > And boy haskore sure isn't shy about exporting modules Well, it has to export a lot of modules since (almost) all types are called T and classes C. That means the information has to be encoded in the module name, hence one module per type/class. Just be grateful that the functions aren't all called f ;) ------------------------------ Message: 7 Date: Fri, 7 Oct 2011 16:40:49 -0700 From: Joe Van Dyk <j...@fixieconsulting.com> Subject: [Haskell-beginners] quickCheck generation question To: beginners <beginners@haskell.org> Message-ID: <CACfv+p+77UFn37k1pRvE6_DkmVPD7mWQpciFgbo=gmsxydq...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 I'm going through the 99 Haskell problems and am trying to write quickCheck properties for each one. -- 3 (find k"th element of a list) element_at xs x = xs !! x prop_3a xs x = (x < length xs && x >= 0) ==> element_at xs (x::Int) == (xs !! x::Int) When I run prop_3a through quickCheck, it gives up, saying that it only passed 1 test. This makes sense, because the random x is going to be larger than the number of elements in the random list in most cases. So what I need to do is write a generator that generates a random list with length larger than a random integer, but I'm not sure how to do that. Thanks! Joe ------------------------------ Message: 8 Date: Fri, 7 Oct 2011 20:49:56 -0600 From: kolli kolli <nammukoll...@gmail.com> Subject: [Haskell-beginners] sorting To: beginners@haskell.org Message-ID: <cae7d9k5zo75alflc9_rm5iiwis+y7i+luza7tgeqlj3umyk...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" hi, can anyone help me sorting elements of a list ["ala", "zero", "jera"] in alphabetical order -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111007/ddffafc8/attachment-0001.htm> ------------------------------ Message: 9 Date: Fri, 7 Oct 2011 23:53:34 -0300 From: Felipe Almeida Lessa <felipe.le...@gmail.com> Subject: Re: [Haskell-beginners] sorting To: kolli kolli <nammukoll...@gmail.com> Cc: beginners@haskell.org Message-ID: <CANd=OGF01qj+s7G=jcvfat9mdctuqt5zylqxe7sxze6-_aq...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 import Data.List s = sort ["ala", "zero", "jera"] -- Felipe. ------------------------------ Message: 10 Date: Fri, 7 Oct 2011 21:15:55 -0600 From: kolli kolli <nammukoll...@gmail.com> Subject: Re: [Haskell-beginners] sorting To: Felipe Almeida Lessa <felipe.le...@gmail.com> Cc: beginners@haskell.org Message-ID: <CAE7D9k5gMeJwjLnfmgzZZpsJ1=r0=XhtAbmNE=sqwk8ospg...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" what if i have ["ala", "0020", "zero", "00021" , "jera","0030"] and I want to sort only the words and nt the numbers On Fri, Oct 7, 2011 at 8:53 PM, Felipe Almeida Lessa <felipe.le...@gmail.com > wrote: > import Data.List > > s = sort ["ala", "zero", "jera"] > > - > Felipe. > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20111007/a7799d82/attachment-0001.htm> ------------------------------ Message: 11 Date: Fri, 7 Oct 2011 20:45:10 -0700 From: Tom Murphy <amin...@gmail.com> Subject: Re: [Haskell-beginners] sorting To: kolli kolli <nammukoll...@gmail.com> Cc: beginners@haskell.org Message-ID: <cao9q0txtyjmozpvu+smuk69prc42+g4kqxjuegfopt3nejx...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" You want the number-strings to stay in the list? Can you show what that list would look like sorted? Tom/amindfv On Oct 7, 2011 10:18 PM, "kolli kolli" <nammukoll...@gmail.com> wrote: > what if i have ["ala", "0020", "zero", "00021" , "jera","0030"] and I want > to sort only the words and nt the numbers > > On Fri, Oct 7, 2011 at 8:53 PM, Felipe Almeida Lessa < > felipe.le...@gmail.com> wrote: > >> import Data.List >> >> s = sort ["ala", "zero", "jera"] >> >> - >> Felipe. >> > > > _______________________________________________ > 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/20111007/2674e182/attachment.htm> ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 40, Issue 8 ****************************************