[Haskell-cafe] Article review: Category Theory

Yitzchak Gale gale at sefer.org
Thu Jan 18 16:09:29 EST 2007


I wrote:
>> Will (id :: A -> A $!) do the trick?

Ulf Norell wrote:
> The problem is not with id, it's with composition. For any f and g we
> have
>
> f . g = \x -> f (g x)
>
> So _|_ . g = \x -> _|_ for any g.

OK, so then how about

f .! g = ((.) $! f) $! g

-Yitz


More information about the Haskell-Cafe mailing list