Re: How to make Data.Set.Set a Functor

2005-10-12 Thread Ketil Malde
Lajos Nagy [EMAIL PROTECTED] writes: On the other hand, it seems intuitively natural to make Set an instance of fmap. Indeed. While I generally like the overloaded, qualified names, I find it annoying when, like 'map', they clash with Prelude imports. Which means that, in a module using

RE: How to make Data.Set.Set a Functor

2005-10-12 Thread Simon Marlow
On 11 October 2005 17:16, Lajos Nagy wrote: While working on a toy compiler I realized that Data.Set.Set (Set) is not an instance of the Functor class. In other words: 'fmap' is not defined on it. I tried various ways of defining an instance but I failed. The reason is quite interesting:

Re: How to use Data.Set.Set

2005-10-12 Thread Christian Maeder
Ketil Malde wrote: Indeed. While I generally like the overloaded, qualified names, I find it annoying when, like 'map', they clash with Prelude imports. Which means that, in a module using Data.Set, I must either use it all qualified, or import it twice (qualified and hiding map), or explicitly

Re: How to use Data.Set.Set

2005-10-12 Thread Ketil Malde
Christian Maeder [EMAIL PROTECTED] writes: I think, you should import qualified Data.Set as Set only and use Set.map rather than the deprecated mapSet (most other names from Data.Set make more sense with the Set. prefix) I can do this of course, but I think it would be nice to be able

Re: How to use Data.Set.Set

2005-10-12 Thread Christian Maeder
Ketil Malde wrote: the advantage of Set.map instead of mapSet? Well, you know that the unqualified name is map, i.e. also for Data.Map it's not mapMap or mapFM but YourChoice.map. (Oh, right, I can import qualified List as Set -- but then I still have to change member to elem etc etc.) I

Re: GHC-6.4.1 on FreeBSD-amd64 still not ported

2005-10-12 Thread Wilhelm B. Kloke
Simon Marlow [EMAIL PROTECTED] schrieb: On 25 September 2005 18:54, Wilhelm B. Kloke wrote: bash-2.05b$ (cd ghc/rts; gmake PrimOps.o ) ../../ghc/compiler/ghc-inplace -H16m -O -H32m -keep-hc-files -static -I. -#include Prelude.h -#include Rts.h -#include RtsFlags.h -#include RtsUtils.h