foreign-0.1.0.0: foreign.cabal
cabal-version: 2.4
name: foreign
version: 0.1.0.0
synopsis: A collection of helpers for ffi.
description:
Please see the README on Github at <https://github.com/4eUeP/foreign#readme>
license: BSD-3-Clause
license-file: LICENSE
copyright: Copyright (c)
author: mu
maintainer: mu@laxcat.xyz
tested-with: GHC ==8.10.7
category: Foreign
homepage: https://github.com/4eUeP/foreign
bug-reports: https://github.com/4eUeP/foreign/issues
build-type: Simple
extra-source-files:
ChangeLog.md
README.md
source-repository head
type: git
location: https://github.com/4eUeP/foreign
common common
default-language: Haskell2010
default-extensions:
DeriveGeneric
DerivingStrategies
EmptyDataDeriving
GADTSyntax
GeneralizedNewtypeDeriving
LambdaCase
OverloadedStrings
RecordWildCards
ScopedTypeVariables
TypeApplications
UnliftedFFITypes
UnliftedNewtypes
ghc-options:
-Wall -Wcompat -Widentities -Wincomplete-record-updates
-Wincomplete-uni-patterns -Wpartial-fields -Wredundant-constraints
library
import: common
hs-source-dirs: src
exposed-modules:
HsForeign
HsForeign.AsyncFFI
HsForeign.Primitive
build-depends:
, base >=4.14 && <5
, ghc-prim >=0.5 && <1.0
, primitive ^>=0.7
, primitive-unlifted ^>=1.0
test-suite foreign-test
import: common
type: exitcode-stdio-1.0
main-is: Spec.hs
other-modules:
HsForeign.AsyncFFISpec
HsForeign.PrimitiveSpec
hs-source-dirs: test
c-sources: test/cbits/ffi.c
build-depends:
, base >=4.14 && <5
, foreign
, hspec
, QuickCheck
build-tool-depends: hspec-discover:hspec-discover >=2 && <3
ghc-options: -threaded -rtsopts -with-rtsopts=-N