[Haskell-cafe] Tree with collections

2006-03-11 Thread Henning Thielemann
I have a problem with defining an instance. module CollTree where import Data.List(intersperse) Say, I want to define a tree structure based on lists. I omit the data attached to the nodes here for simplicity. data ListTree = ListNode [ListTree] deriving Show This is simple

Re: [Haskell-cafe] Tree with collections

2006-03-11 Thread Roberto Zunino
Henning Thielemann wrote: Now I have to write 'show' related code for each collection type. This way I probably duplicate a lot of code that is already written for the Show instances of the collections. To be honest, I use a more special tree structure with even more special collections so

[Haskell-cafe] Re: Can't uninstall GHC or prepare SOE installation on OS X

2006-03-11 Thread Xavier Elizalde
Hi Wolfgang, For some reason, GHCi now keeps launching every time I launch Terminal.app, I can't even get a regular command line prompt now. I had to uninstall all the files for GHCi manually from an X11 Xterm to get a regular prompt. It still gets an error trying to launch GHCi, but

Re: [Haskell-cafe] Re: Can't uninstall GHC or prepare SOE installation on OS X

2006-03-11 Thread Wolfgang Thaller
Hi Wolfgang, For some reason, GHCi now keeps launching every time I launch Terminal.app, I can't even get a regular command line prompt now. I had to uninstall all the files for GHCi manually from an X11 Xterm to get a regular prompt. It still gets an error trying to launch GHCi, but

Re: [Haskell-cafe] Re: Can't uninstall GHC or prepare SOE installation on OS X

2006-03-11 Thread Xavier Elizalde
That did the trick, thanks heaps again. I think I may have done a Use Settings as Default after having tweaked the Terminal settings after launching GHCi. I kept thinking it was some kind of Unix shell startup script thing. Xavier On 12/03/2006, at 5:54 AM, Wolfgang Thaller wrote:

Re: [Haskell-cafe] STUArray

2006-03-11 Thread Frederik Eaton
I see. The solutions on that thread, i.e.: http://www.mail-archive.com/haskell%40haskell.org/msg17085.html would seem to require me to at least declare an instance of some class, for every type that I want to support. So the short answer to I'm trying to figure out how to use STUArray. Is it

Re[2]: [Haskell-cafe] STUArray

2006-03-11 Thread Bulat Ziganshin
Hello Frederik, Sunday, March 12, 2006, 5:58:42 AM, you wrote: FE Perhaps some sort of warning in the documentation for STUArray is in FE order, until Bulat's code can be incorporated? excellent idea. you can make diff for Data.Array.ST/IO and send it to the libs maillist FE By the way, why