[Haskell-cafe] Status of MIME Strike Force

Marc Weber marco-oweber at gmx.de
Wed Jun 27 15:14:02 EDT 2007


> > 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


More information about the Haskell-Cafe mailing list