[Haskell] strange ghc behaviour?

2006-03-15 Thread Christopher Brown
Hi, I use ghc 6.4.1 on Mac OS X 10.4.5 and recently I have been getting some very strange errors. It has happened when I have been trying to compile DrIFT, and also today when I was compiling Haddock. The errors seem to change each time, and they always complain about an undefined symbol.

Re: [Haskell] Haskell Weekly News: March 13, 2006

2006-03-15 Thread Sebastian Sylvan
On 3/13/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: > > Haskell Weekly News: March 13, 2006 > >Greetings, and thanks for reading issue 28 of HWN, a weekly newsletter >covering developments in the Haskell community. Each Monday, new >editions are posted to [

[Haskell] implementing pointers-based data structure

2006-03-15 Thread minh thu
hi everybody, i have to implement some data structure which is usually implemented with pointers in imperative languages (can think of it as a double linked list). i'd like to know how i have to do that. is there any standard way of converting pointer-based data structure into an inductively-def

Re: [Haskell] implementing pointers-based data structure

2006-03-15 Thread Sebastian Sylvan
On 3/15/06, minh thu <[EMAIL PROTECTED]> wrote: > hi everybody, > > i have to implement some data structure which is usually implemented > with pointers in imperative languages (can think of it as a double > linked list). > > i'd like to know how i have to do that. > > is there any standard way of

Re: [Haskell] implementing pointers-based data structure

2006-03-15 Thread Sebastian Sylvan
On 3/15/06, Sebastian Sylvan <[EMAIL PROTECTED]> wrote: > On 3/15/06, minh thu <[EMAIL PROTECTED]> wrote: > > hi everybody, > > > > i have to implement some data structure which is usually implemented > > with pointers in imperative languages (can think of it as a double > > linked list). > > > > i

Re: [Haskell] implementing pointers-based data structure

2006-03-15 Thread Jared Updike
You could check out the data structures in Edison, a library of myriad functional data structures. It may already have implemented a sequence data structure with the desired features: http://www.eecs.tufts.edu/~rdocki01/docs/edison/index.html homepage: http://www.eecs.tufts.edu/~rdocki01/ediso

Re: [Haskell] implementing pointers-based data structure

2006-03-15 Thread Duncan Coutts
On Wed, 2006-03-15 at 17:21 +0100, Sebastian Sylvan wrote: > On 3/15/06, minh thu <[EMAIL PROTECTED]> wrote: > > hi everybody, > > > > i have to implement some data structure which is usually implemented > > with pointers in imperative languages (can think of it as a double > > linked list). > > >

Re: [Haskell] implementing pointers-based data structure

2006-03-15 Thread minh thu
2006/3/15, Duncan Coutts <[EMAIL PROTECTED]>: > On Wed, 2006-03-15 at 17:21 +0100, Sebastian Sylvan wrote: > > On 3/15/06, minh thu <[EMAIL PROTECTED]> wrote: > > > hi everybody, > > > > > > i have to implement some data structure which is usually implemented > > > with pointers in imperative langu

Re: [Haskell] strange ghc behaviour?

2006-03-15 Thread Taral
On 3/15/06, Christopher Brown <[EMAIL PROTECTED]> wrote: > /tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' > /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' > /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' > /tmp/ghc24547.s:108482:Invalid mnemonic 'mtcts' > /tmp/ghc24804.s:unknown:Undefined local

Re: [Haskell] strange ghc behaviour?

2006-03-15 Thread Christopher Brown
Taral, What is a bit-0 error? and how do I find out if I have bad RAM? Chris. On 15 Mar 2006, at 20:32, Taral wrote: On 3/15/06, Christopher Brown <[EMAIL PROTECTED]> wrote: /tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' /tmp/ghc24547.s:103430

[Haskell] Re: Haskell Digest, Vol 31, Issue 15

2006-03-15 Thread Paul Johnson
"minh thu" <[EMAIL PROTECTED]> wrote: 2006/3/15, Duncan Coutts <[EMAIL PROTECTED]>: On Wed, 2006-03-15 at 17:21 +0100, Sebastian Sylvan wrote: You can also use laziness (untested!): data DLink a = (DLink a) a (DLink a) | Nil test = d1 where d1 = Nil 5 d2 d2 = d1 6 Nil te

Re: [Haskell] strange ghc behaviour?

2006-03-15 Thread Taral
On 3/15/06, Christopher Brown <[EMAIL PROTECTED]> wrote: > Taral, > > What is a bit-0 error? and how do I find out if I have bad RAM? > >> /tmp/ghc24547.s:22969:Invalid mnemonic 'mtcts' > >> /tmp/ghc24547.s:103127:Invalid mnemonic 'mtcur' > >> /tmp/ghc24547.s:103430:Invalid mnemonic 'mtcur' > >> /

Re: [Haskell] strange ghc behaviour?

2006-03-15 Thread Christopher Brown
Taral, Thanks for the information. I have ran the apple hardware test and it reported that there were no errors with the RAM (although I'm not convinced there is nothing wrong with the RAM). Perhaps it could have been a problem with the ghc installation (i.e. a bit got flipped in the exec

Re: [Haskell] strange ghc behaviour?

2006-03-15 Thread Taral
On 3/15/06, Christopher Brown <[EMAIL PROTECTED]> wrote: > Thanks for the information. I have ran the apple hardware test and it > reported that there were no errors with the RAM (although I'm not > convinced there is nothing wrong with the RAM). I do not know how to uninstall ghc on your system,

Re: [Haskell] Haskell Weekly News: March 13, 2006

2006-03-15 Thread Donald Bruce Stewart
sebastian.sylvan: > On 3/13/06, Donald Bruce Stewart <[EMAIL PROTECTED]> wrote: > > > > Haskell Weekly News: March 13, 2006 > > > >Greetings, and thanks for reading issue 28 of HWN, a weekly newsletter > >covering developments in the Haskell community. Each Monday, new