[darcs-users] index format

Ganesh Sittampalam ganesh at earth.li
Tue Jun 9 20:49:22 UTC 2009


On Tue, 9 Jun 2009, Reinier Lamers wrote:

> This is not just about your code. If this supposed bikeshed reaches a
> conclusion, that conclusion will be a rule for all code that comes in the
> future. A general rule that there shall be no undefineds in darcs' source
> could be a useful result. Or a rule that every fromJust should have a comment
> explaining why it is really safe (perhaps haskell_policy already does that,
> not sure).

One possibility would be to use Neil Mitchell's safe package:

http://hackage.haskell.org/packages/archive/safe/0.2/doc/html/Safe.html

In particular fromJustNote seems nice here.

Ganesh


More information about the darcs-users mailing list