Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update from Hackage at 2020-01-31T00:47:56Z
- Loading branch information
1 parent
5939a46
commit ee8a064
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: inline-c-cpp | ||
version: 0.4.0.2 | ||
synopsis: Lets you embed C++ code into Haskell. | ||
description: Utilities to inline C++ code into Haskell using inline-c. See | ||
tests for example on how to build. | ||
license: MIT | ||
license-file: LICENSE | ||
author: Francesco Mazzoli | ||
maintainer: f@mazzo.li | ||
copyright: (c) 2015-2016 FP Complete Corporation, (c) 2017-2019 Francesco Mazzoli | ||
category: FFI | ||
tested-with: GHC == 8.2.2, GHC == 8.4.4, GHC == 8.6.5 | ||
build-type: Simple | ||
cabal-version: >=1.10 | ||
extra-source-files: test/*.h | ||
|
||
source-repository head | ||
type: git | ||
location: https://github.com/fpco/inline-c | ||
|
||
library | ||
exposed-modules: Language.C.Inline.Cpp | ||
Language.C.Inline.Cpp.Exceptions | ||
build-depends: base >=4.7 && <5 | ||
, inline-c >= 0.9.0.0 | ||
, template-haskell | ||
, safe-exceptions | ||
, containers | ||
hs-source-dirs: src | ||
default-language: Haskell2010 | ||
ghc-options: -Wall -optc-xc++ -optc-std=c++11 | ||
include-dirs: include | ||
install-includes: HaskellException.hxx HaskellStablePtr.hxx | ||
extra-libraries: stdc++ | ||
c-sources: cxx-src/HaskellException.cxx cxx-src/HaskellStablePtr.cxx | ||
cc-options: -Wall -std=c++11 | ||
if os(darwin) | ||
-- avoid https://gitlab.haskell.org/ghc/ghc/issues/11829 | ||
ld-options: -Wl,-keep_dwarf_unwind | ||
ghc-options: -pgmc=clang++ | ||
|
||
test-suite tests | ||
type: exitcode-stdio-1.0 | ||
hs-source-dirs: test | ||
main-is: tests.hs | ||
build-depends: base >=4 && <5 | ||
, inline-c | ||
, inline-c-cpp | ||
, safe-exceptions | ||
, hspec | ||
, containers | ||
default-language: Haskell2010 | ||
ghc-options: | ||
-optc-std=c++11 | ||
if os(darwin) | ||
ghc-options: -pgmc=clang++ | ||
extra-libraries: stdc++ | ||
cc-options: -Wall -Werror -optc-xc++ -std=c++11 | ||
if os(darwin) | ||
ld-options: -Wl,-keep_dwarf_unwind |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
{"package-hashes":{"MD5":"dd080d1656a50ef38c31ca1a3c5b80b6","Skein512_512":"04da015922660776929c1847177cb030ba2f1bdf439d9c4ac0b8e4c9bcebbdc9f8a769fda80f463c79d90da87677d69beb3c848b3385e2f38585688c63c075b8","SHA1":"ac28b6e3b5a7c16ed42112ee68c0add852400443","SHA512":"730b4f51c2f526c8d5136742b1c66ce487cdfa1641b1216dca0a6f47c5535980d837d3636156f7381c2e7e9f89f230bde3c521cd11b8374d05f1a00dfc250131","SHA256":"f7c6a6fb1c22784b9592461e4ffcad964665a9b130f824f3f176c943b0b06759"},"package-locations":["https://hackage.haskell.org/package/inline-c-cpp-0.4.0.2/inline-c-cpp-0.4.0.2.tar.gz","https://s3.amazonaws.com/hackage.fpcomplete.com/package/inline-c-cpp-0.4.0.2.tar.gz"],"package-size":7700} |