On Tue, Aug 31, 2010 at 17:22:31 -0600, Zooko O'Whielacronx wrote:
> zo...@tahoe-lafs:~/playground/darcs/bench$ darcs-benchmark run -v
> --converge darcs-2.4.4 darcs-2.4.98.3+175
> WARNING: Could read /home/zooko/.darcs-benchmark/tahoe-lafs.org-warm.info
> darcs-benchmark: user error (Pattern match failure in do expression at
> source/Benchmark.hs:178:7-21)

Argh, sorry about that!  I had tried it, just not using the same
version of Darcs as you did

I'll note that this is looks like a standard pattern-match failure that
you'd check type checking for, but when we pattern match out of an
action, we don't get GHC reminding us that this there are missing cases
(ie. ones where splitOn returns not exactly 2 results).

  [info, context] <- splitOn "Context:\n\n" `fmap` darcsMeta cmd 
["--exact-version"]

I'm not sure what is the right conclusion to draw from this.
Personally, I'd embrace the type checker and avoid constructs that
suppress its ability to complain...

I'll look into this sometime later.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
For a faster response, try +44 (0)1273 64 2905 or
xmpp:[email protected] (Jabber or Google Talk only)

Attachment: signature.asc
Description: Digital signature

_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to