[project @ 2002-08-08 22:29:28 by reid]
authorreid <unknown>
Thu, 8 Aug 2002 22:29:28 +0000 (22:29 +0000)
committerreid <unknown>
Thu, 8 Aug 2002 22:29:28 +0000 (22:29 +0000)
commit1777f7c6b99c6c57766a65f854d27cf86c140f52
treee531eaca30ab26cbe65e375a5b93d320a02e0a5e
parentbb02d065adafd2366048fbbe28c42e02ebc0a1c0
[project @ 2002-08-08 22:29:28 by reid]
Hugs provides makeForeignPtr instead of newForeignPtr.

It is hoped that these macros overcome the difference.

+ #ifdef __HUGS__
+ #define MAKE_ARRAY(x) makeForeignPtr (x) free
+ #else
+ #define MAKE_ARRAY(x) newForeignPtr (x) (free (x))
+ #endif

I could probably get away with introducing a Haskell functions instead
of a macro..

[Untested since Data.Array.Base requires the pattern guard extension
so I can't load it.  Still, I think this will be ready to go once we
fix D.A.B]
Data/Array/Storable.hs