Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread ajb
G'day all. Quoting Asfand Yar Qazi <[EMAIL PROTECTED]>: > Actually, I'm trying to avoid library functions, so I can learn the > language and the functional way of thinking. How would one implement > the concatMap function? See if you can work how how this one works. No library functions, apart

Re: [Haskell] Compile error in GHC HEAD revision - nobody responding to bug report

2006-03-13 Thread Taral
On 3/13/06, Asfand Yar Qazi <[EMAIL PROTECTED]> wrote: > 42: type NumSamples = ALCsizei > 109: type ALCsizei = HTYPE_ALCSIZEI > > A C header file has the entry '#define HTYPE_ALCSIZEI Word32'. I suspect ALCint is not Word32. -- Taral <[EMAIL PROTECTED]> "Computer science is no more about computer

[Haskell] Compile error in GHC HEAD revision - nobody responding to bug report

2006-03-13 Thread Asfand Yar Qazi
Hi, I filed a bug report for a compile error in the latest GHC build, but nobody has responded to it for 4 days. I might as well try to fix it myself, but I'm just a functional programming and Haskell beginner. Here's the bug I filed: http://hackage.haskell.org/trac/ghc/ticket/715 Here's what t

Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Asfand Yar Qazi
On 3/13/06, Greg Buchholz <[EMAIL PROTECTED]> wrote: > Asfand Yar Qazi wrote: > > I'm trying to implement hierarchical states in Haskell, following on from my > > work at doing them in C++. > > > > Here's what I've got so far: > > > > data StateNode a= CompositeState [ StateNode a ] | State

Re: [Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Greg Buchholz
Asfand Yar Qazi wrote: > I'm trying to implement hierarchical states in Haskell, following on from my > work at doing them in C++. > > Here's what I've got so far: > > data StateNode a= CompositeState [ StateNode a ] | State a > stateslist :: StateNode a -> [a] > stateslist(State x) = [x]

[Haskell] Trying to get a Composite design pattern to work

2006-03-13 Thread Asfand Yar Qazi
I'm trying to implement hierarchical states in Haskell, following on from my work at doing them in C++. Here's what I've got so far: data StateNode a= CompositeState [ StateNode a ] | State a stateslist :: StateNode a -> [a] stateslist(State x) = [x] stateslist(CompositeState xs) = {- ret

[Haskell] GPCE'06 Call for Tutorials/Workshops

2006-03-13 Thread Emir Pasalic
CALL FOR TUTORIALS/WORKSHOPS Fifth International Conference on Generative Programming and Component Engineering (GPCE'06) http://www.gpce.org/06/