Re: sharing datatypes : best practice ?

2001-05-11 Thread Jan Kort
"Taesch, Luc" wrote: > > do u isolate just the datatype, or a few related with, in a very small file (header >like, i would say) > or some basic accessor function with it ? > > isnt it leading to massiv quantities of small files ? Asuming you have some typed AST with many mutually recursive da

Arrays in Haskell, was: Re: Functional programming in Python

2001-05-11 Thread Wojciech Moczydlowski, Jr
On Tue, 8 May 2001, Erik Meijer wrote: > Interestingly enough, I have the same feeling with Python! Speaking of problems with Haskell, almost every time I write a larger program, I'm frustrated with lack of efficient arrays/hashtables in the standard. I know about ghc (I|U|M)Arrays for arrays an

Re: Arrays in Haskell

2001-05-11 Thread Michal Gajda
On Fri, 11 May 2001, Wojciech Moczydlowski, Jr wrote: > data Array type_of_objects_stored = ... -- abstract > data MArray a b = ... -- abstract > > put :: Int -> a -> Array a -> MArray a () Probably you meant: put :: Int -> a -> MArray a () > get :: Array a -> MArray a a get :: Int -> M

Re: Arrays in Haskell

2001-05-11 Thread Wojciech Moczydlowski, Jr
On Fri, 11 May 2001, Michal Gajda wrote: > On Fri, 11 May 2001, Wojciech Moczydlowski, Jr wrote: > Probably you meant: > put :: Int -> a -> MArray a () > get :: Int -> MArray a a > runMArray :: Int -> a -> MArray a b -> b You're of course right. I should have reread my letter before sending. >