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 _______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
