[GUI] Haskell GUI examples

Jens Petersen petersen@redhat.com
05 Mar 2003 11:31:01 +0900


Daan Leijen <daanleijen@xs4all.nl> writes:

> btw. Maybe you should make the objects the last argument
> of instance functions. That way, you can use an object oriented
> style of programming (if you like that):
> 
> infixr 0 #    -- matches nicely with ($)
> 
> (#) :: self -> (self -> a) -> a
> self # f  = f self

FWIW we had (#) in gtk2hs for a while, but in the end it
didn't seem so useful, so it was removed

Jens