开发者

Haskell library to manipulate a git repo

开发者 https://www.devze.com 2023-03-18 10:09 出处:网络
I am writing an application in Haskell that will have to perform basic operations on Git repositories (add, log, push, pull, fetch, diff etc.)

I am writing an application in Haskell that will have to perform basic operations on Git repositories (add, log, push, pull, fetch, diff etc.)

What are my options here (are there any 开发者_JAVA技巧apart from invoking shell commands from Haskell)? I could not find any good leads on Hackage.


There are many good libraries for interacting with Git available on Hackage:

  • git-object - parser and types for git objects
  • darcs-fastconvert - tools for importing from git
  • ght - trivial git interaction
  • libgit - simple git wrapper
  • hlibgit2 - full bindings to libgit2
  • gitit - wiki based on git
  • filestore - high level file-based interface to DVCS (git, darcs, etc).

You should be able to get started with these packages.


Better than hlibgit2 is gitlib, which is a high-level set of type wrappers around the functionality of hlibgit2, designed for laziness, performance, and to suit a Haskell mindset.

0

精彩评论

暂无评论...
验证码 换一张
取 消