[Haskell-cafe] Alternatives to convoluted record syntax

Dougal Stanton 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 =
>   (('b',7),"hallo")$%first^:second^=10
> (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 Stanton
dougal at dougalstanton.net // http://www.dougalstanton.net

More information about the Haskell-Cafe mailing list