Re: [Haskell-cafe] Getting a string from url-converted UTF8 input

2010-05-17 Thread Eugene Dzhurinsky
On Sun, May 16, 2010 at 06:55:33PM +0200, Daniel Fischer wrote: Is there any problem compiling from source on FreeBSD? Well, good question :) After I tried to find some sources, I realized that there are http://www.haskell.org/ghc/download_ghc_6_12_2.html#freebsd -- Eugene N Dzhurinsky

[Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Ralph Hodgson
Following a successful install of the Haskell Platform on MAC OSX, I proceed to update my Windows PC. Frustration followed. I am blocked by a Permission Denied error when I do a Setup install: ghc --make Setup [58 of 58] Compiling Main ( Setup.hs, Setup.o ) Linking

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Ralph Hodgson
Providing more evidence of the issue by running cabal with -v flag: ... ... Linking... C:\Program Files (x86)\Haskell Platform\2009.2.0.2\bin\ar.exe -r dist\build\libHSCabal-1.8.0.4.a dist\build\Distribution\Compiler.o dist\build\Distribution\InstalledPackageInfo.o ... ... ...

[Haskell-cafe] Re: What do _you_ want to see in FGL?

2010-05-17 Thread Heinrich Apfelmus
Ivan Lazar Miljenovic wrote: Heinrich Apfelmus writes: I was under the impression that I would have to define a new graph data type with FilePath as vertex type and make that an instance of Graph ? [..] Well, we'll provide a Map-based one that lets you specify the vertex type as a type

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Zura_
Hi, Try Run as administrator right click menu item for cmd.exe Regards, Zura -- View this message in context: http://old.nabble.com/Windows-7-Permission-Denied-Problem-on-Cabal-tp28580131p28580510.html Sent from the Haskell - Haskell-Cafe mailing list archive at Nabble.com.

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Phyx
Right, the problem is that under windows 7 and vista the Program Files folder if not yours as in you don't have direct permission to write there without elevation. You could go to the Haskell folder, and grand your current user full rights, but any new tools installed will inherit the original

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Phyx
I wouldn't do this because the installed tools will be written with that elevated rights, so you can only invoke them from an elevated prompt, which is a bit cumbersome. -Original Message- From: haskell-cafe-boun...@haskell.org [mailto:haskell-cafe-boun...@haskell.org] On Behalf Of Zura_

Re: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Duncan Coutts
On 17 May 2010 09:37, Phyx loneti...@gmail.com wrote: The other approach I like much better is instead of doing global installs, do user installs. In fact, I made it my default. Which solves any permission error, but means every user on that machine has to install the libs separately which

Re: [Haskell-cafe] Re: What do _you_ want to see in FGL?

2010-05-17 Thread Ivan Lazar Miljenovic
Heinrich Apfelmus apfel...@quantentunnel.de writes: Ivan Lazar Miljenovic wrote: Heinrich Apfelmus writes: I was under the impression that I would have to define a new graph data type with FilePath as vertex type and make that an instance of Graph ? [..] Well, we'll provide a

[Haskell-cafe] Re: ShowList magic

2010-05-17 Thread Abby Henríquez Tejera
On 17 mayo, 04:00, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 17 May 2010 12:56, Abby Henríquez Tejera parad...@gmail.com wrote: [...] There would then be something like: instance (Show a) = Show [a] where     show = showList So, depending on the type used, it will either use

Re: [Haskell-cafe] [reactive] A pong and integrate

2010-05-17 Thread Patai Gergely
I did not look thoroughly at elerea, but at least, when I tried its sample dungeons of wor it worked properly ;) Elerea has its own 'beauty' though. I suggest unpacking the source of dow and executing it in ghci, the problem will be obvious as you play at length. Unfortunately, Elerea doesn't

Re: [Haskell-cafe] Re: ShowList magic

2010-05-17 Thread Ivan Lazar Miljenovic
Abby Henríquez Tejera parad...@gmail.com writes: I had already read the RWH chapter, but still didn't understand it, but now (preparing to answer you why I didn't «see» it), it suddenly all came clear. Oh, I hate this moments, now I feel stupid :). Heh, everyone has those moments, so don't

[Haskell-cafe] Re: ShowList magic

2010-05-17 Thread Abby Henríquez Tejera
On 17 mayo, 04:00, Ivan Miljenovic ivan.miljeno...@gmail.com wrote: On 17 May 2010 12:56, Abby Henríquez Tejera parad...@gmail.com wrote: [...] There would then be something like: instance (Show a) = Show [a] where     show = showList So, depending on the type used, it will either use

[Haskell-cafe] Re: What do _you_ want to see in FGL?

2010-05-17 Thread Ben Franksen
Neil Brown wrote: Primarily I want to see in FGL: documentation, documentation and more documentation. +1 Cheers Ben ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: [Haskell-cafe] Re: ShowList magic

2010-05-17 Thread Brandon S. Allbery KF8NH
On May 17, 2010, at 09:42 , Abby Henríquez Tejera wrote: I had already read the RWH chapter, but still didn't understand it, but now (preparing to answer you why I didn't «see» it), it suddenly all came clear. Oh, I hate this moments, now I feel stupid :). You're going to have a lot of those

[Haskell-cafe] Wait forever in main thread

2010-05-17 Thread DPX-Infinity
Hi, I'm writing a program which listens to some D-Bus signals using DBus.Client.onSignal function from dbus-client package. This function runs IO action in separate haskell thread when signal is received. My program does nothing except signal handling, so after setting up signals it has to wait

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread Don Stewart
dpx.infinity: Hi, I'm writing a program which listens to some D-Bus signals using DBus.Client.onSignal function from dbus-client package. This function runs IO action in separate haskell thread when signal is received. My program does nothing except signal handling, so after setting up

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread David Leimbach
On Mon, May 17, 2010 at 10:04 AM, DPX-Infinity dpx.infin...@gmail.comwrote: Hi, I'm writing a program which listens to some D-Bus signals using DBus.Client.onSignal function from dbus-client package. This function runs IO action in separate haskell thread when signal is received. My program

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread Roel van Dijk
Use our threads package [1]. import Control.Concurrent.Thread ( forkIO, wait_ ) myDBusThingie :: IO () myDBusThingie = error TODO main :: IO () main = do tid - forkIO myDBusThingie wait_ tid But like David said, this is only usefull if you plan on multiple concurrent waits or doing

Re: [Haskell-cafe] [reactive] A pong and integrate

2010-05-17 Thread Limestraël
I looked at elerea. I found it simple and nice! I just regret the fact that the SignalMonad can only be run inside IO. With reactive, you can transform signals in pure code. I suggest unpacking the source of dow and executing it in ghci, the problem will be obvious as you play at length. Yes,

Re: [Haskell-cafe] [reactive] A pong and integrate

2010-05-17 Thread Patai Gergely
I looked at elerea. I found it simple and nice! I heard complaints about this two-layered solution with SignalMonad/SignalGen, so I'm glad you like it. :) I just regret the fact that the SignalMonad can only be run inside IO. That's life. ;) However, there is only a single point where you have

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread John Millikin
Author of dbus-client here. Don Stewart's solution (blocking on an mvar) is the best way to handle it. Presumably, you've got some way to make your program shut down (method call? signal handler?) -- just set the mvar in that. On Mon, May 17, 2010 at 11:07, David Leimbach leim...@gmail.com wrote:

[Haskell-cafe] ANN: Leksah 0.8

2010-05-17 Thread Jürgen Nicklisch-Franken
This is our official 0.8 release. Anyone still using 0.6 should upgrade. Anyone using an earlier 0.8 release should upgrade too (and delete ~/.leksah-0.8/prefs.lkshp and ~/.leksah-0.8/prefscoll.lkshp). There's lots of new stuff, so please have a look if you can. Let us know which of the things

Re: [Haskell-cafe] Re: ShowList magic

2010-05-17 Thread Ivan Lazar Miljenovic
Brandon S. Allbery KF8NH allb...@ece.cmu.edu writes: On May 17, 2010, at 09:42 , Abby Henríquez Tejera wrote: I had already read the RWH chapter, but still didn't understand it, but now (preparing to answer you why I didn't «see» it), it suddenly all came clear. Oh, I hate this moments, now I

Re: [Haskell-cafe] ShowList magic

2010-05-17 Thread Lennart Augustsson
Your question is actually deeper than some of the people answering you seem to realize. How does ghci decide what to do when you say show [] ? The expression [] has type [a], which means it could be a list of any type 'a', including Char. Normally, when Haskell can't determine the type in this

[Haskell-cafe] GHC Install button grayed out

2010-05-17 Thread David Matuszek
I'm trying to install Haskell Platform 2010.1.0.1 on my Mac, downloaded from http://hackage.haskell.org/platform/ I have: Mac OS X 10.6.3 2 x 2.66 GHz Dual-Core Intel Xeon XCode 3.1.3 Also, I am an admin on this machine. When I try to install GHC-6.12.1-i386.pkg, I agree to the license,

Re: [Haskell-cafe] GHC Install button grayed out

2010-05-17 Thread Holger Siegel
Am 18.05.2010 um 00:24 schrieb David Matuszek: I'm trying to install Haskell Platform 2010.1.0.1 on my Mac, downloaded from http://hackage.haskell.org/platform/ I have: Mac OS X 10.6.3 2 x 2.66 GHz Dual-Core Intel Xeon XCode 3.1.3 Also, I am an admin on this machine. When I try to

RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal

2010-05-17 Thread Ralph Hodgson
Thanks for your help - that worked beautifully. From: Phyx [mailto:loneti...@gmail.com] Sent: Monday, May 17, 2010 1:38 AM To: rhodg...@topquadrant.com; haskell-cafe@haskell.org Subject: RE: [Haskell-cafe] Windows 7 Permission Denied Problem on Cabal Right, the problem is that under

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread Bas van Dijk
On Mon, May 17, 2010 at 7:12 PM, Don Stewart d...@galois.com wrote: dpx.infinity: Hi, I'm writing a program which listens to some D-Bus signals using DBus.Client.onSignal function from dbus-client package. This function runs IO action in separate haskell thread when signal is received. My

Re: [Haskell-cafe] Good US Grad schools for functional languages?

2010-05-17 Thread Tim Chevalier
On 5/13/10, Job Vranish job.vran...@gmail.com wrote: Anybody know of a good grad school in the US for functional languages? (good = has Ph.D. program that covers functional languages, type systems, correctness proofs, etc...) At Portland State, faculty include Andrew Tolmach, Jim Hook, Mark

Re: [Haskell-cafe] Wait forever in main thread

2010-05-17 Thread David Leimbach
On Mon, May 17, 2010 at 2:37 PM, John Millikin jmilli...@gmail.com wrote: Author of dbus-client here. Don Stewart's solution (blocking on an mvar) is the best way to handle it. Presumably, you've got some way to make your program shut down (method call? signal handler?) -- just set the mvar

Re: [Haskell-cafe] Numerical Analysis

2010-05-17 Thread Roman Leshchinskiy
On 17/05/2010, at 05:17, Gregory Crosswhite wrote: As an aside, while there are advantages to writing numerical analysis routines in Haskell, it might be better strategy to instead link in something like LAPACK and provide nice wrappers to it in Haskell, since this way you can harness the

Re: [Haskell-cafe] Numerical Analysis

2010-05-17 Thread Roman Leshchinskiy
On 17/05/2010, at 02:52, Pierre-Etienne Meunier wrote: You are quite right that vector only supports nested arrays but not multidimensional ones. This is by design, however - the library's only goal is to provide efficient one-dimensional, Int-indexed arrays. I'm thinking about how to

Re: [Haskell-cafe] Numerical Analysis

2010-05-17 Thread Gregory Crosswhite
Oh, I agree that it would be really nice to have a way to write high-performance code in pure Haskell --- it would be nice if I didn't have to drop to Fortran anymore just because it makes it easier to write high-performance numeric code! My only point was that it might not be worthwhile to