So, as an exercise in writing a library, I wrote out an implementation of bitwise set operations using the interface of Data.Set with a couple of extensions. It provides an abstract interface and type checking. Using GHC -O3, code compiles right down to the primitive bit-twiddling operators. My example program (a sudoku solver) runs several times faster.
I'll be grateful for any feedback on this. Perhaps something like it would be useful included in the standard libraries.
Cheers, David
EnumSet.hs
Description: Binary data
-------------------------------- David F. Place mailto:[EMAIL PROTECTED]
_______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe