[Haskell-cafe] Bool as type class to serve EDSLs.

Jason Dusek jason.dusek at gmail.com
Wed May 27 10:22:42 EDT 2009


2009/05/27 Miguel Mitrofanov <miguelimo38 at yandex.ru>:
> And I would certainly celebrate when "if b then x else y"
> expression becomes polymorphic in "b".

    class Boolean b where
      fromBoolean :: b -> Bool

--
Jason Dusek


More information about the Haskell-Cafe mailing list