Skip to content

Instantly share code, notes, and snippets.

@norm2782
Created July 16, 2011 19:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norm2782/1086661 to your computer and use it in GitHub Desktop.
Save norm2782/1086661 to your computer and use it in GitHub Desktop.
λ include → λ git master* → cabal configure;cabal build
Resolving dependencies...
Configuring hgit2-0.1...
Preprocessing library hgit2-0.1...
i686-apple-darwin11-llvm-gcc-4.2: warning: '-x c' after last input file has no effect
i686-apple-darwin11-llvm-gcc-4.2: no input files
c2hs: Error during preprocessing custom header file
Library
HS-Source-Dirs: src
Exposed-Modules: Data.HGit2.Blob, Data.HGit2.Commit, Data.HGit2.Config,
Data.HGit2.Errors, Data.HGit2.Git2, Data.HGit2.Index,
Data.HGit2.Object, Data.HGit2.Repository
Includes: git2.h
Build-Tools: c2hs
CC-Options: -U __BLOCKS__
It does work with this: cd src && ghc --make Main.hs -lgit2
(git2.h is in the same dir as the Cabal file)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment