[Haskell-cafe] Defining new operators

rodrigo.bonifacio rodrigo.bonifacio at uol.com.br
Fri Aug 10 16:50:43 EDT 2007

Hi all,

Given the follwing function:

> owner :: Step -> Scenario
> owner (Step id scenario action state response) = scenario

Is it possible to define the owner function in such way that I can write x.owner (returning the scenario related with the Step x)?

Thanks in advance,


More information about the Haskell-Cafe mailing list