[darcs-devel] API

Eric Kow eric.kow at gmail.com
Tue Mar 18 15:01:32 UTC 2008


> This has often been proposed, but I don't have time to write a darcs
>  API---although the time I've spent refactoring darcs might help---and so
>  far noone else has shown any interest in designing such an API, although
>  numerous folks have wished it existed...

>From the just-be-stupid school of thought:

Rather than designing a proper darcs API, I was wondering if we could
maybe just expose all of Darcs.Command.Foo in a way that would be
almost equivalent to running darcs from the command line (except that
you pass in arguments by building [DarcsFlag]).  Oh yeah, and maybe a
single runCommand function from Darcs.Command itself.

Something quick, dirty and high-level.  It wouldn't give you any sort
of interactivity, but it may be marginally nicer than calling darcs as
a program.  Plus it'd be a foot in the library door.

This would still be Haskell-based, but once we have something like
this, I'm sure somebody could work out the C bits.

-- 
Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow>
PGP Key ID: 08AC04F9


More information about the darcs-devel mailing list