Re: [Haskell-cafe] Haskell Debugging

2006-11-13 Thread Bernie Pope
On 14/11/2006, at 3:29 AM, Valentin Gjorgjioski wrote: On 13.11.2006 16:54 Valentin Gjorgjioski wrote: On 13.11.2006 16:48 Pepe Iborra wrote: Hi Valentin Please, take a look at the Haskell Wiki page for debugging. http://haskell.org/haskellwiki/Debugging You will find that thanks to Neil M

Re: [Haskell-cafe] pleac, examples, etc

2006-11-13 Thread Spencer Janssen
Please do not use the PLEAC Haskell cookbook for learning Haskell. The author redefined many of the standard operators to produce code that isn't standard Haskell. Here are some choice snippets from the first chapter: Now, we all know that the (.) operator is function composition, right?

[Haskell-cafe] pleac, examples, etc

2006-11-13 Thread brad clawsie
it would be great if some of the more informed posters here took a stab at filling in http://pleac.sourceforge.net/pleac_haskell/index.html a neat site for cookbook-style problem solving from looking over haskell documentation for a few months now, i would say what is missing is one central coo

Re: [Haskell-cafe] best Linux for GHC?

2006-11-13 Thread Murray Gross
as RedHat and RPMs is widely used for packaging software available via internet. Is Ubuntu supports RPMs too? I think it's widely regarded as a Bad Idea to mix packages between distributions. I would suggest Ubuntu (or Debian Sid if you are interested in getting newer versions of GHC). I th

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Ben Moseley
gtk-demo seemed to run fine. --Ben On 13 Nov 2006, at 21:01, Duncan Coutts wrote: On Mon, 2006-11-13 at 20:49 +, Ben Moseley wrote: Has anyone succeeded in getting it running on OSX/intel at all? I'm not sure actually. I seem to recall someone trying it but I can't remember who now. cc

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 20:49 +, Ben Moseley wrote: > Has anyone succeeded in getting it running on OSX/intel at all? I'm not sure actually. I seem to recall someone trying it but I can't remember who now. cc-ing to gtk2hs-users in case anyone knows: has anyone on OSX tried the new Gtk+ 2.10.x

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Ben Moseley
Has anyone succeeded in getting it running on OSX/intel at all? ...I had a brief go a few weeks back, managed to get the Cairo Clock running, but anything that used GTK seemed to blow up instantly. (OSX/ ppc was fine). --Ben On 13 Nov 2006, at 19:03, Duncan Coutts wrote: On Mon, 2006-11-1

[Haskell-cafe] non-blocking Socket

2006-11-13 Thread Donn Cave
[reposted with improved subject] I notice that the Socket returned by ghc Network.Socket (socket) has been set non-blocking. (Noticed empirically, not from documentation.) The Network.Socket functions that use it, e.g., recv, are ready for that, of course, but as a general rule, external functio

Re[8]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Bulat Ziganshin
Hello Duncan, Monday, November 13, 2006, 10:19:16 PM, you wrote: >> >> why? are you tried to call Gtk2Hs from only one thread? >> it will be great to see comments about this. it's impossible to write >> my program without using threaded RTS > As for the threaded RTS, currently that's only ok if

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Donn Cave
I notice that the Socket returned by ghc Network.Socket (socket) has been set non-blocking. (Noticed empirically, not from documentation.) The Network.Socket functions that use it, e.g., recv, are ready for that, of course, but as a general rule, external functions that expect a socket are very l

Re: Re[6]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 17:10 +0300, Bulat Ziganshin wrote: > >> > The one thing you should be aware of is that Windows + Threading + > >> > Gtk2Hs + Gtk + GHC = Pain. > >> > >> why? are you tried to call Gtk2Hs from only one thread? > > > I think so, yes. Or there are bizare -threaded restrictions

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 18:00 +, Tim Docker wrote: > > afaik, there are just two good enough libs - wxHaskell and GtkHs. can > > anyone point (or write) detailed comparison of their features? > > One point in wxHaskell's favour is that it supports Mac OS X directly. At > present, to the best of

Re: Re[4]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 16:48 +0300, Bulat Ziganshin wrote: > Hello Duncan, > > Monday, November 13, 2006, 4:10:03 PM, you wrote: > > on the download page only GHC 6.4.1 support mentioned. is 6.4.2 and > 6.6 supported on windows? The last official release for Windows supports GHC 6.2.2 and 6.4.1.

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Luis F. Araujo
Bulat Ziganshin wrote: > third: are there any "appetizers" demonstrating features of each > library and with source code available for studying? except for > memory.pdf which don't mention where full source can be downloaded > > it will be interesting to see sources of more "business-like" > applic

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Luis F. Araujo
Iván Pérez Domínguez wrote: > Neil Mitchell wrote: > >> Hi Bulat, >> >> >>> afaik, there are just two good enough libs - wxHaskell and GtkHs. can >>> anyone point (or write) detailed comparison of their features? i plan >>> to write large GUI program in Haskell and want to select best one.

Re: [Haskell-cafe] best Linux for GHC?

2006-11-13 Thread Magnus Therning
On Mon, Nov 13, 2006 at 13:36:13 +0300, Bulat Ziganshin wrote: >Hello Ketil, > >Monday, November 13, 2006, 10:45:59 AM, you wrote: > My friend offered me 3 variants: SuSe, Fedora Core 5, free variant of RedHat (i can't remember its name, may be Ubuntu?) >> CentOS, perhaps? It is usually

Re: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Tim Docker
> afaik, there are just two good enough libs - wxHaskell and GtkHs. can > anyone point (or write) detailed comparison of their features? One point in wxHaskell's favour is that it supports Mac OS X directly. At present, to the best of my knowledge, you can only run GtkHs applications on OS X usin

Re: [Haskell-cafe] Testing non-exported functions using ghci

2006-11-13 Thread Henning Thielemann
On Mon, 13 Nov 2006, Joachim Breitner wrote: > Am Montag, den 13.11.2006, 21:24 +1100 schrieb John Ky: > > I have modules that don't export some functions. Is there a way I can > > access them from ghci without exporting them? > > It seems that if there are .hi files around, ghci can't reach th

Re: [Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Luis F. Araujo
Alex Queiroz wrote: >> Hallo, >> >> On 11/13/06, Mark T.B. Carroll <[EMAIL PROTECTED]> wrote: >> >>> How up to date will Debian unstable's GHC be kept, though? It seems >>> pretty good at the moment, but there have been times when we've had to >>> install from source instead of via Debian earl

Re: [Haskell-cafe] Haskell Debugging

2006-11-13 Thread Pepe Iborra
Can you manage to compile GHC under Windows? Compiling GHC under Windows is known to be a bit tricky and time consuming, certainly not for the novice user, although the steps are well detailed in the GHC developer documentation. If so, I'd encourage you to play with the Ghci Debugger projec

Re: Re[6]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Sebastian Sylvan
On 11/13/06, Bulat Ziganshin <[EMAIL PROTECTED]> wrote: Hello Neil, Monday, November 13, 2006, 5:06:02 PM, you wrote: > http://haskell.org/~duncan/gtk2hs/gtk2hs-0.9.10.exe > That's the most recent Gtk2Hs for 6.4.2. the http://haskell.org/gtk2hs/download/ page says that gtk2hs is available onl

Re: [Haskell-cafe] Haskell Debugging

2006-11-13 Thread Valentin Gjorgjioski
On 13.11.2006 16:54 Valentin Gjorgjioski wrote: On 13.11.2006 16:48 Pepe Iborra wrote: Hi Valentin Please, take a look at the Haskell Wiki page for debugging. http://haskell.org/haskellwiki/Debugging You will find that thanks to Neil Mitchell there is a Windows version of Hat available. Perh

Re: [Haskell-cafe] Haskell Debugging

2006-11-13 Thread Valentin Gjorgjioski
On 13.11.2006 16:48 Pepe Iborra wrote: Hi Valentin Please, take a look at the Haskell Wiki page for debugging. http://haskell.org/haskellwiki/Debugging You will find that thanks to Neil Mitchell there is a Windows version of Hat available. Perhaps you can add your experiences with it if it w

Re: [Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Alex Queiroz
Hallo, On 11/13/06, Mark T.B. Carroll <[EMAIL PROTECTED]> wrote: How up to date will Debian unstable's GHC be kept, though? It seems pretty good at the moment, but there have been times when we've had to install from source instead of via Debian earlier this year so that we had GHC features and

Re: [Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Mark T.B. Carroll
Max Vasin <[EMAIL PROTECTED]> writes: > Yes, but I wouldn't recommend installing rpms in debian-based system > (although, it can work perfectly). GHC 6.6 is in Debian unstable > (and should be in Ubuntu 6.10 or development branch). Ubuntu universe > repositiry is automatically updated from Debian

Re: [Haskell-cafe] Haskell Debugging

2006-11-13 Thread Pepe Iborra
Hi Valentin Please, take a look at the Haskell Wiki page for debugging. http://haskell.org/haskellwiki/Debugging You will find that thanks to Neil Mitchell there is a Windows version of Hat available. Perhaps you can add your experiences with it if it works for you. pepe On 13/11/2006, a

[Haskell-cafe] Haskell Debugging

2006-11-13 Thread Valentin Gjorgjioski
I'm pretty new in Haskell, few days since I started learning it. I want to debu my programs. I'm currently using WinHugs, and I prefer debugger for this. I tried googling and I found Hugs.Observer. I like it how it works, but still I have one BIG problem with it. It doesn't work well with flo

[Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Max Vasin
I think Haskell packages from sid can be installed on etch with no harm (or problem). All you need is to configure apt to use both testing and unstable. -- WBR, Max Vasin. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/ma

[Haskell-cafe] Re: what GUI library should i select?

2006-11-13 Thread Max Vasin
On linux you should use your package manager (whenever possible), not binaries from the site (or compile it yourself). -- WBR, Max Vasin. ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe

[Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Max Vasin
Yes, but I wouldn't recommend installing rpms in debian-based system (although, it can work perfectly). GHC 6.6 is in Debian unstable (and should be in Ubuntu 6.10 or development branch). Ubuntu universe repositiry is automatically updated from Debian repos thus being one of the largest repos for L

[Haskell-cafe] Re: best Linux for GHC?

2006-11-13 Thread Ferenc Wagner
Bulat Ziganshin <[EMAIL PROTECTED]> writes: > of remaining, Ubuntu has widest support here while SuSe is favourite > of my friend. one thing that i like in suse is that it uses the same > RPMs as RedHat and RPMs is widely used for packaging software > available via internet. Is Ubuntu supports RPM

Re[6]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Bulat Ziganshin
Hello Neil, Monday, November 13, 2006, 5:06:02 PM, you wrote: > http://haskell.org/~duncan/gtk2hs/gtk2hs-0.9.10.exe > That's the most recent Gtk2Hs for 6.4.2. the http://haskell.org/gtk2hs/download/ page says that gtk2hs is available only for 6.4.1 >> > The one thing you should be aware of is

Re: Re[4]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Neil Mitchell
Hi Bulat, http://haskell.org/~duncan/gtk2hs/gtk2hs-0.9.10.exe That's the most recent Gtk2Hs for 6.4.2. > The one thing you should be aware of is that Windows + Threading + > Gtk2Hs + Gtk + GHC = Pain. why? are you tried to call Gtk2Hs from only one thread? I think so, yes. Or there are biza

Re: [Haskell-cafe] Section Syntax Errors

2006-11-13 Thread Henning Thielemann
On Sat, 11 Nov 2006, David House wrote: > On 11/11/06, Aditya Siram <[EMAIL PROTECTED]> wrote: > > subOne :: [Integer] -> [Integer] > > subOne = map (- 1) > > The short answer is that this is interpreted as negative unity, rather > than a section of binary minus. There are two common workarounds

Re[4]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Bulat Ziganshin
Hello Neil, Monday, November 13, 2006, 4:43:59 PM, you wrote: > The full source code of GuiHaskell is available. i will at it too > The one thing you should be aware of is that Windows + Threading + > Gtk2Hs + Gtk + GHC = Pain. why? are you tried to call Gtk2Hs from only one thread? -- Best

Re[4]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Bulat Ziganshin
Hello Duncan, Monday, November 13, 2006, 4:10:03 PM, you wrote: on the download page only GHC 6.4.1 support mentioned. is 6.4.2 and 6.6 supported on windows? on linux? where i can read about forthcoming gtk2hs version and when it will be released? -- Best regards, Bulat

Re: [Haskell-cafe] deepSeq vs rnf

2006-11-13 Thread Björn Bringert
Cale Gibbard wrote: On 22/10/06, Chad Scherrer <[EMAIL PROTECTED]> wrote: Hi, I had posted this question a while back, but I think it was in the middle of another discussion, and I never did get a reply. Do we really need both Control.Parallel.Strategies.rnf and deepSeq? Should we not always ha

Re: Re[2]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Neil Mitchell
Hi - Gtk2Hs had better support, but now wxHaskell has more maintainers and situation may change to opposite in a next few months As long as Duncan is around, there will always be enough Gtk2Hs support! Currently Gtk2Hs _has_ better support, the situation may change or may not. Remember that Du

Re: Re[2]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Duncan Coutts
On Mon, 2006-11-13 at 15:41 +0300, Bulat Ziganshin wrote: > Hello Duncan, > > Monday, November 13, 2006, 3:36:32 AM, you wrote: > > >> afaik, there are just two good enough libs - wxHaskell and GtkHs. can > > in brief, i see the following main differences: > > - wxHaskell is easier to understan

Re: [Haskell-cafe] Testing non-exported functions using ghci

2006-11-13 Thread Joachim Breitner
Hi, Am Montag, den 13.11.2006, 21:24 +1100 schrieb John Ky: > I have modules that don't export some functions. Is there a way I can > access them from ghci without exporting them? It seems that if there are .hi files around, ghci can’t reach the non-exported functions, but if you delete this fil

Re[2]: [Haskell-cafe] what GUI library should i select?

2006-11-13 Thread Bulat Ziganshin
Hello Duncan, Monday, November 13, 2006, 3:36:32 AM, you wrote: >> afaik, there are just two good enough libs - wxHaskell and GtkHs. can in brief, i see the following main differences: - wxHaskell is easier to understand and to use, Ght2Hs allows to use Glade to develop "look&feel" - Gtk2Hs ha

Re: [Haskell-cafe] Great language shootout: reloaded

2006-11-13 Thread Donald Bruce Stewart
tpledger: > Donald Bruce Stewart wrote: > [...] > > While we're here we should fix: > > chameneos > > And anything else you want to take a > > look at. > > > > A community page has been set up to > > which you can submit improved entries: > > > http://www.haskell.org/haskellwiki/Great_languag

[Haskell-cafe] Great language shootout: reloaded

2006-11-13 Thread tpledger
Donald Bruce Stewart wrote: [...] > While we're here we should fix: > chameneos > And anything else you want to take a > look at. > > A community page has been set up to > which you can submit improved entries: > http://www.haskell.org/haskellwiki/Great_language_shootout [...] Well, then!

Re[2]: [Haskell-cafe] best Linux for GHC?

2006-11-13 Thread Bulat Ziganshin
Hello Ketil, Monday, November 13, 2006, 10:45:59 AM, you wrote: >>> My friend offered me 3 variants: SuSe, Fedora Core 5, free variant of >>> RedHat (i can't remember its name, may be Ubuntu?) > CentOS, perhaps? It is usually good advice to choose whatever your > friends are using, thanks to e

[Haskell-cafe] Testing non-exported functions using ghci

2006-11-13 Thread John Ky
Hello,I have modules that don't export some functions.  Is there a way I can access them from ghci without exporting them?Thanks-John ___ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe