[darcs-devel] Greetings and some questions

Eric Y. Kow eric.kow at gmail.com
Sun Oct 1 22:03:43 PDT 2006


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://lists.osuosl.org/pipermail/darcs-devel/attachments/20061002/b00a6547/attachment.pgp


More information about the darcs-devel mailing list