[Haskell-cafe] Alternatives to convoluted record syntax
dougal at dougalstanton.net
Thu Jul 3 07:16:23 EDT 2008
On Thu, Jul 3, 2008 at 11:13 AM, Henning Thielemann
<lemming at henning-thielemann.de> wrote:
> infix2 :: ((Char, Int), String)
> infix2 =
> (second^=10) replaces the second member of pair with a value.
> (^:) applies that change to the outer record (again a pair).
> ($%) applies the modifier (first^:second^=10) to a concrete pair.
Hmm! Thanks for the pointer, but I'm not sure that would really clear
things up much. It seems this may just be a wart I'll have to put up
dougal at dougalstanton.net // http://www.dougalstanton.net
More information about the Haskell-Cafe