Re: Generating setMember functions for record structures

2003-09-25 Thread Peter Simons
Peter Gammie writes: Haskell Report, Sec 3.15.3 Great, that's exactly what I need. Thanks a lot to all who replied! Peter ___ Haskell-Cafe mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell-cafe

Re: Generating setMember functions for record structures

2003-09-23 Thread Malcolm Wallace
Peter Simons [EMAIL PROTECTED] writes: setFoo:: State - [Int] - State setFoo st x= State { foo = x , bar = bar st } There is an easier way to do this, using the record update syntax rather than record construction syntax. e.g.