Re: Congrats to Mandrake
Ashley Yakeley [EMAIL PROTECTED] writes: At 2002-02-19 14:13, Duncan Coutts wrote: So what I mean is, can we have links to more binaries than just Red Hat? Debian, Mandrake, FreeBSD. (I know these's SuSE) Seconded. I'm not sure what the point would be, if they are in the distributions anyway? Isn't it better to install them by apt-get or up2date or whatever? (In fact, I had almost thought manually downloading packages a thing of the past, but then the IT department insisted on Red Hat) -kzm -- If I haven't seen further, it is by standing in the footprints of giants ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: Importing a reference to a non-function entity.
What is the politically correct way using the FFI and ghc5.03 (which I have just managed to compile from CVS) to import an externally defined object (not a function)? I have a source file containing the line foreign label default_options defaultOptions :: CString.CString for which ghc5.03 complains about Warning: foreign declaration uses deprecated non-standard syntax, but which works anyway. However in my attempt to be a good little ghc user, I try instead foreign import default_options defaultOptions :: CString.CString (after deciphering with difficulty the Postscript version of the FFI document on this screen) but still get the deprecated warning. Then I try foreign import ccall default_options defaultOptions :: CString.CString I believe you meant to say foreign import ccall default_options defaultOptions :: CString.Cstring :-) (see the latest FFI addendum at http://www.cse.unsw.edu.au/~chak/haskell/ffi/) Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: Data constructors and pattern matching
It seems to me that it might be very useful for a module to export the pattern matching operators for a datatype without exporting the constructors. Suppose we have data A = X {a::Int, b::Float} And we want to maintain the invariant that b is a floating-point representation of a. So normally we would have to use a completely abstract datatype, and provide constructors and destructors. But in this case, it would actually make sense to provide the pattern-matching operator X, but not the data constructor X. So I think it would be good to separate these in the module export syntax. What's wrong with module M (A, a, b) where { ... } ? Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
RE: Congrats to Mandrake
Jim Farrand [EMAIL PROTECTED] wrote: both hugs and ghc in their Linux distro *as standard*. This could significantly help Haskell takeup amongst the unwashed masses. :-) Well, same applies for FreeBSD. And Debian. So what I mean is, can we have links to more binaries than just Red Hat? Debian, Mandrake, FreeBSD. (I know these's SuSE) It may just seem like clutter on the download page but it would help users and as much as anything else it shows some apreciation for the packagers who track the releases so well. Oops! Looks like I added the FreeBSD packages to my local copy of the web pages and forgot to copy it up to the web site. Sorry about that. I'll add links to the Mandrake packages while I'm there. Could someone who is Debian-compliant tell me where I should be pointing for Debian packages? Cheers, Simon ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Congrats to Mandrake
[EMAIL PROTECTED] (Ketil Z. Malde) writes: I'm not sure what the point would be, if they are in the distributions anyway? Isn't it better to install them by apt-get or up2date or whatever? (In fact, I had almost thought manually downloading packages a thing of the past, but then the IT department insisted on Red Hat) If I, a developer, wrote a program, and some distributions included it (while others didn't), I would want to acknowledge and thank them in public. If I, a potential customer choosing among Linux distributions, liked to use a program, and I saw on the program home page that so-and-so distributions included the program, I would arrange my preference accordingly. If I, an absent-minded user, heard about some great program from my friends, and saw on the program home page which distributions included it, I might realize Gosh, *my* distribution CD already has it! and save some download and install effort. Remember, I am absent-minded, so I wouldn't know what's on my CD unless someone stick it on my face. :) I probably don't need hyperlinks; I just need to know if my distribution includes it or not. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: i368-pc-os2-emx port
Simon Marlow [EMAIL PROTECTED] writes: On the other hand, you'd need something like mingw for OS/2 - does such a beast exist? The substring emx refers to an OS/2 version of gcc and libraries that make OS/2 look really like Unix from the programmer's point of view. (It probably even pre-dates cygwin.) I have two encouraging stories to tell. First, for a school assignment, I wrote an OpenGL program on emx, then ported it to school's Solaris+Mesa ten minutes before the deadline --- where porting meant removing #include os2.h. Second, I wrote a program that used tcpip sockets on Unix, then merely recompiled it on emx to use it on OS/2 as well. ___ Glasgow-haskell-users mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Re: Congrats to Mandrake
On Wed, Feb 20, 2002 at 03:45:15PM +0200, Lauri Alanko wrote: On Wed, Feb 20, 2002 at 01:37:52PM -, Simon Marlow wrote: Could someone who is Debian-compliant tell me where I should be pointing for Debian packages? http://ftp.debian.org/debian/pool/main/g/ghc5/ Though of course any debian user should just be able to say apt-get install ghc5 to get the latest package from the nearest mirror... Better: http://packages.debian.org/testing/devel/ghc5.html http://packages.debian.org/unstable/devel/ghc5.html --Dylan Thurston msg03123/pgp0.pgp Description: PGP signature