Re:"Welcome to the Machine": State monads in Clojure
by jrockway on Tuesday February 09, 2010 @07:22PM
(#1113814)
you can't even make Set a functor in Haskell
Well sure, because map on a set is only defined over functions that return values that can be compared for equality, whereas the generic functor map is defined over all functions.
Re:"Welcome to the Machine": State monads in Clojure
by eru on Tuesday February 09, 2010 @08:19PM
(#1113922)
Exactly. (However Data.Set is only defined for comparable values, i.e. the Ord typeclass, not Eq.)
I add: They aren't enforced completely in Haskell, either.
(And you can't even express every monad in Haskell. E.g. you can't even make Set a functor in Haskell.)