Re: Haskell GUI examples

Jens Petersen <[email protected]>
Newsgroups gmane.comp.lang.haskell.gui
Message-ID <[email protected]>
Daan Leijen <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.