Hi everyone, Earlier in the year, Wolfgang had a couple of students working on project to implement a Darcs GUI using Grapefruit.
I've checked with Wolfgang and it looks like their comments and the source code are ready for the mailing list. Here they are below. Note that we now have a bug open http://bugs.darcs.net/issue1483 to improve our repo-IO/user-IO separation. For Darcs developers -------------------- Patchwork's GUI modules could be directly integrated into Darcs. Therefore you will need to break up the commands into parts of user interaction and parts of pure program logic which do not depend on the way of UI. For an example see the module Patchwork.GUI.PushPull?. There is a function called runPuPu with a detailed comment. There you can see how we separated the Darcs logic and the UI. It is also a nice example how you could enhance the readability of your command-functions. In Patchwork.DIL.DarcsAPI you will find the Darcs code we used and how we split it up. The analysis of the darcs source code was very difficult for us because there are far too less comments - even on essential types. Many identifiers do not have meaningful names. Potential Darcs developers who are not forced to deal with it by a student project could be seriously discouraged by your sources. Source: http://trac.haskell.org/patchwork/ Repos ----- darcs get http://code.haskell.org/patchwork/main patchwork See in particular: http://code.haskell.org/patchwork/main/Patchwork/DIL/ -- Eric Kow <http://www.nltg.brighton.ac.uk/home/Eric.Kow> PGP Key ID: 08AC04F9
signature.asc
Description: Digital signature
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
