
27 Jun
2007
27 Jun
'07
3:14 p.m.
exampleHeaders2 :: [RawHeader] exampleHeaders2 = ((Subject "whee") .+. (Subject "bork") .+. (Keywords ["baz", "bar", "bam"]) .*. (Keywords ["zip", "zap", "zop"]) .*. empty ) [...] But, it is also really wonky because the operator has a bit of a postfix feel to it. For example, it is the .*. at the end of this line that is making it use addHeader.
So why not use flip on each operator to get empty .*. (Subject "blah") .+. ... ? That might be a little bit more comfortable ? Marc Weber