[Haskell-cafe] Re: Seeking advice on a style question

Steve Schafer steve at fenestra.com
Fri Dec 29 12:10:27 EST 2006


On Fri, 29 Dec 2006 09:01:37 -0800, you wrote:

>Steve Schafer wrote:
>> 
>> I can easily rewrite it in point-free style:
>> 
>>  process1 = baz . bar . foo
>
>    Not unless you have a much fancier version of function composition,
>like...
>
>    http://okmij.org/ftp/Haskell/types.html#polyvar-comp


Sorry; I obviously got a little carried away there:

 process1 x =
   let u = foo x;
       v = bar u;
       w = baz v
   in  w

 process1 = baz . bar . foo

Steve Schafer
Fenestra Technologies Corp.
http://www.fenestra.com/


More information about the Haskell-Cafe mailing list