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. question about list comprehension or creating array (Ching-Chao Chang) 2. Re: question about list comprehension or creating array (David Virebayre) 3. Re: haskell for FPGAS (Tom Murphy) 4. Re: haskell for FPGAS (Bas van Gijzel) 5. GUI (Glade installation) (Stephanie Wong) 6. Re: GUI (Glade installation) (Tom Hobbs) ---------------------------------------------------------------------- Message: 1 Date: Mon, 17 Jan 2011 15:29:27 +0000 From: Ching-Chao Chang <cch...@geodigmcorp.com> Subject: [Haskell-beginners] question about list comprehension or creating array To: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <07B5ADD7823A47429C97D3D1B2D78F15E86D42@EX02.geodigm.local> Content-Type: text/plain; charset="us-ascii" Hi, I want to create an immutable array like this In .hs file e = [1,2,3] a = array [1,3] [(i,v) | i<-[1..3], v<-e] I expect the output to be "array (1,3) [(1,1),(2,2),(3,3)]" But I got "array (1,3) [(1,3),(2,3),(3,3)]" Why is that? Can anyone tell me how to get the output that I expect? Thanks a lot, cchang -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20110117/6e6451a9/attachment-0001.htm> ------------------------------ Message: 2 Date: Mon, 17 Jan 2011 16:36:08 +0100 From: David Virebayre <dav.vire+hask...@gmail.com> Subject: Re: [Haskell-beginners] question about list comprehension or creating array To: Ching-Chao Chang <cch...@geodigmcorp.com> Cc: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <AANLkTi=GMAEa3YZoLO4A08havXa_7tthK_Q=oHdH=8...@mail.gmail.com> Content-Type: text/plain; charset=UTF-8 2011/1/17 Ching-Chao Chang <cch...@geodigmcorp.com>: > [(i,v) | i<-[1..3], v<-e] Try this [(i,v) | i<-[1..3], v<-e] See the list it produces. It should give you a hint. David. ------------------------------ Message: 3 Date: Mon, 17 Jan 2011 11:37:38 -0500 From: Tom Murphy <amin...@gmail.com> Subject: Re: [Haskell-beginners] haskell for FPGAS To: David Blubaugh <davidblubaugh2...@yahoo.com> Cc: beginners@haskell.org Message-ID: <aanlktikt3-wdugabr_ebzcecq89otvihzwgn9fiba...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Continuing the "Not exactly" trend, you could always ask this guy... http://www.youtube.com/watch?v=-zEWS7P91d4 http://blog.sigfpe.com/2007/05/haskell-incarnate.html Tom On Sun, Jan 16, 2011 at 1:44 AM, David Blubaugh <davidblubaugh2...@yahoo.com > wrote: > To All, > > > Has anyone developed HASKELL FOR FPGA development ?? > > Thank You, > > Daid Blubaugh > > > > > _______________________________________________ > 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/20110117/fcd76345/attachment-0001.htm> ------------------------------ Message: 4 Date: Mon, 17 Jan 2011 21:25:04 +0100 From: Bas van Gijzel <neneko...@gmail.com> Subject: Re: [Haskell-beginners] haskell for FPGAS To: David Blubaugh <davidblubaugh2...@yahoo.com>, beginners@haskell.org Message-ID: <aanlktin7gwtmochg4zkvvzn+iwf2g_iljrntu60jw...@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Well at University of Twente (Netherlands) they work a lot with Haskell/Clash and FPGA's. You can look at two Master's theses written by students there: http://essay.utwente.nl/59482/ <http://essay.utwente.nl/59482/>http://essay.utwente.nl/59381/ Bas On 17 January 2011 17:37, Tom Murphy <amin...@gmail.com> wrote: > Continuing the "Not exactly" trend, you could always ask this guy... > http://www.youtube.com/watch?v=-zEWS7P91d4 > http://blog.sigfpe.com/2007/05/haskell-incarnate.html > > Tom > > > > On Sun, Jan 16, 2011 at 1:44 AM, David Blubaugh < > davidblubaugh2...@yahoo.com> wrote: > >> To All, >> >> >> Has anyone developed HASKELL FOR FPGA development ?? >> >> Thank You, >> >> Daid Blubaugh >> >> >> >> >> _______________________________________________ >> Beginners mailing list >> Beginners@haskell.org >> http://www.haskell.org/mailman/listinfo/beginners >> >> > > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > > -- http://adoseoflogic.blogspot.com/ -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://www.haskell.org/pipermail/beginners/attachments/20110117/62cced22/attachment-0001.htm> ------------------------------ Message: 5 Date: Tue, 18 Jan 2011 01:35:17 +0000 From: Stephanie Wong <pmy...@nottingham.ac.uk> Subject: [Haskell-beginners] GUI (Glade installation) To: "beginners@haskell.org" <beginners@haskell.org> Message-ID: <543a5ba0271e66489e00529b39c7b4580296ac4...@exchange1.ad.nottingham.ac.uk> Content-Type: text/plain; charset="us-ascii" Hi, I am new to GUIs and for my project I need to develop a GUI. I found a demo that is very useful but unfortunately, I am unable to compile it and get this error message: 'Could not find module 'Graphics.UI.Gtk.Glade': Use -v to see the a list of the files searched for.' I have installed Gtk2hs and able to use other demos without Glade. I have searched Glade and found many different versions and the installation seems a bit complicated. I'm working on Windows 7. Would you be able to recommend a version of Glade that is compatible for Windows 7 and perhaps give me some instructions on how to install it please. Many Thanks, StephThis message and any attachment are intended solely for the addressee and may contain confidential information. If you have received this message in error, please send it back to me, and immediately delete it. Please do not use, copy or disclose the information contained in this message or in any attachment. Any views or opinions expressed by the author of this email do not necessarily reflect the views of the University of Nottingham. This message has been checked for viruses but the contents of an attachment may still contain software viruses which could damage your computer system: you are advised to perform your own checks. Email communications with the University of Nottingham may be monitored as permitted by UK legislation. ------------------------------ Message: 6 Date: Tue, 18 Jan 2011 09:54:58 +0000 From: Tom Hobbs <tvho...@googlemail.com> Subject: Re: [Haskell-beginners] GUI (Glade installation) To: Stephanie Wong <pmy...@nottingham.ac.uk>, beginners@haskell.org Message-ID: <aanlktik1otgmz6zgxzmdq8dx_xua0ofuttmpxlm9s...@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1 Hi Stephanie, How did you install Glade? I've only used it briefly (and not on Windows). I used the following commands to get everything working without any trouble. cabal install alex cabal install gtk2hs-buildtools cabal install gtk cabal install glade Sorry I can't be any more help. Good luck. Tom On Tue, Jan 18, 2011 at 1:35 AM, Stephanie Wong <pmy...@nottingham.ac.uk> wrote: > Hi, > > I am new to GUIs and for my project I need to develop a GUI. I found a demo > that is very useful but unfortunately, I am unable to compile it and get this > error message: > > 'Could not find module 'Graphics.UI.Gtk.Glade': > ? ?Use -v to see the a list of the files searched for.' > > I have installed Gtk2hs and able to use other demos without Glade. I have > searched Glade and found many different versions and the installation seems a > bit complicated. I'm working on Windows 7. > > Would you be able to recommend a version of Glade that is compatible for > Windows 7 and perhaps give me some instructions on how to install it please. > > > > Many Thanks, > StephThis message and any attachment are intended solely for the addressee > and may contain confidential information. If you have received this message > in error, please send it back to me, and immediately delete it. ? Please do > not use, copy or disclose the information contained in this message or in any > attachment. ?Any views or opinions expressed by the author of this email do > not necessarily reflect the views of the University of Nottingham. > > This message has been checked for viruses but the contents of an attachment > may still contain software viruses which could damage your computer system: > you are advised to perform your own checks. Email communications with the > University of Nottingham may be monitored as permitted by UK legislation. > _______________________________________________ > Beginners mailing list > Beginners@haskell.org > http://www.haskell.org/mailman/listinfo/beginners > ------------------------------ _______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners End of Beginners Digest, Vol 31, Issue 17 *****************************************