on master help sign in
Using include and include-dirs directives in cabal
0fc4abdMichael Snoyman
Text/Libyaml.chs+1−1
@@ -8,7 +8,7 @@ module Text.Libyaml
8 ) where
8 ) where
9
9
10#include <yaml.h>
10#include <yaml.h>
11−#include "../../../c/helper.h"
11+#include <helper.h>
12
12
13import C2HS
13import C2HS
14import qualified Data.ByteString.Internal as B
14import qualified Data.ByteString.Internal as B
yaml.cabal+4−1
@@ -1,5 +1,5 @@
1name: yaml
1name: yaml
2−version: 0.0.0
2+version: 0.0.1
3license: BSD3
3license: BSD3
4license-file: LICENSE
4license-file: LICENSE
5author: Michael Snoyman <michael@snoyman.com>
5author: Michael Snoyman <michael@snoyman.com>
@@ -23,4 +23,7 @@ library
23 C2HS
23 C2HS
24 ghc-options: -Wall
24 ghc-options: -Wall
25 c-sources: c/helper.c
25 c-sources: c/helper.c
26+ include-dirs: c
27+ includes: c/helper.h
26 extra-libraries: yaml
28 extra-libraries: yaml
29+ build-tools: c2hs