On Sun, Oct 01, 2006 at 22:16:16 -0400, Dino Morelli wrote:
> I've been studying Haskell for a few months but am still pretty new to
> the language. I'm here because I'd like to try contributing to darcs.

Yay! Welcome!

Working on darcs has improved my Haskell somewhat.  I still feel new to
the language though...

>    $ darcs init
>    $ darcs add ./a/b/c.wiki
>    darcs: a: getSymbolicLinkStatus: does not exist (No such file or
>    directory)

I have marked issue88 as resolved.  Gosh, that error message is kind of
unpleasant though; it would be nice to have something friendlier.
Something like directory 'a' does not exist!

>   else "A file or dir named "++new++" (or perhaps differing"++
>            " only in case)\nalready exists in "++
>            what_slurpy ++ ".\n"++
>            "Use --case-ok to allow files differing only in case."

Have also marked issue203 as resolved.

> I was thinking about it, and if nobody thinks it's too nitpicky, it would
> be somewhat better if the string literal "--case-ok" wasn't used here
> (and also in Add.lhs)  I was tinkering with some code as shown below to
> extract the long option name programmatically.

Good thought.  Perhaps you could make a function like
  getLongDarcsOption :: DarcsOption -> String
  -- I am horrible with function names; pick something reasonable

So that you can just say (getLongDarcsOption allow_caseonly).

This has the added benefit of avoiding stuff like head.

-- 
Eric Kow                     http://www.loria.fr/~kow
PGP Key ID: 08AC04F9         Merci de corriger mon français.

Attachment: pgplKGbQIoJpr.pgp
Description: PGP signature

_______________________________________________
darcs-devel mailing list
[email protected]
http://www.abridgegame.org/cgi-bin/mailman/listinfo/darcs-devel

Reply via email to