hpack
hpack copied to clipboard
Foreign Library Stanza
trafficstars
- [Y ] Did you add a new feature to
hpack?- [Y] Did you add an acceptance test for that new feature to
test/EndToEndSpec.hs?
- [Y] Did you add an acceptance test for that new feature to
Addresses https://github.com/sol/hpack/issues/258.
Adds the following syntax to support foreign / shared libraries so we dont need to use the verbatim block anymore:
foreign-library:
type: native-shared
source-dirs: driver
options:
- standalone
dependencies:
- hpack
I do not know why the CI is failing for Windows/'system' GHC (being GHC 9.6.2). I logged https://gitlab.haskell.org/ghc/ghc/-/issues/23533 as it seems to be GHC-related.
Locally, I can build and test (stack test) the Hpack respository at commit 36c44de831ebaf3962763ffa2c34a424b2a8650e with Stack configuration:
resolver: nightly-2023-06-18 # GHC 9.4.5
compiler: ghc-9.6.2
extra-deps:
# GHC 9.6.2 boot libaries
- Cabal-3.10.1.0
- Cabal-syntax-3.10.1.0
- directory-1.3.8.1
- time-1.12.2
- process-1.6.17.0
- Win32-2.13.3.0
# Required because the Stackage snapshot versions do not support GHC 9.6.2
- semigroupoids-6.0.0.1
- bifunctors-5.6.1
Thanks @mpilgrem.