[Haskell-cafe] If you'd design a Haskell-like language, what would you do different?

Martin DeMello martindemello at gmail.com
Wed Dec 21 02:55:24 CET 2011


On Tue, Dec 20, 2011 at 3:10 PM, Chris Wong
<chrisyco+haskell-cafe at gmail.com> wrote:
>
> Why not expand it even further?
>
> class Monoid m where
>    (•) :: m -> m -> m
>    (∅) :: m
>
> (∈) :: (Foldable t, Eq a) => a -> t a -> Bool
>
> (∘) :: (b -> c) -> (a -> b) -> (a -> c)
>
> (∧) :: Bool -> Bool -> Bool
>
> etc.
>
> We can write a whole Haskell library full of these aliases --
> "syntactic-heroin" perhaps? ;)

Why would you go that far and still not have → ? (:

martin



More information about the Haskell-Cafe mailing list