2026-02-23 12:04:47 +00:00
|
|
|
cabal-version: 3.14
|
2026-02-17 14:57:34 +00:00
|
|
|
name: garnet
|
|
|
|
|
version: 0.1.0.0
|
2026-02-19 13:53:18 +00:00
|
|
|
license: BSD-3-Clause
|
2026-02-17 14:57:34 +00:00
|
|
|
author: Patrick Aldis
|
2026-02-19 13:53:18 +00:00
|
|
|
maintainer:
|
|
|
|
|
george.thomas@obsidian.systems
|
|
|
|
|
patrick.aldis@obsidian.systems
|
2026-04-13 13:03:50 +01:00
|
|
|
-- aha, nice, this does fix recompilation checking
|
|
|
|
|
extra-source-files:
|
|
|
|
|
rust/target/debug/garnet_rs.h
|
|
|
|
|
-- that could be problematic given file is gitignored? unfortunately this doesn't work
|
|
|
|
|
-- tbf, I haven't even looked up the docs, just saw the autocompletion
|
|
|
|
|
-- extra-tmp-files:
|
|
|
|
|
-- rust/target/debug/garnet_rs.h
|
2026-02-17 14:57:34 +00:00
|
|
|
|
2026-02-20 09:08:16 +00:00
|
|
|
common common
|
2026-02-17 14:57:34 +00:00
|
|
|
default-language: GHC2024
|
|
|
|
|
default-extensions:
|
|
|
|
|
BlockArguments
|
|
|
|
|
DeriveAnyClass
|
|
|
|
|
DuplicateRecordFields
|
|
|
|
|
ImpredicativeTypes
|
|
|
|
|
LexicalNegation
|
|
|
|
|
MultiWayIf
|
|
|
|
|
NamedFieldPuns
|
|
|
|
|
NegativeLiterals
|
|
|
|
|
NoFieldSelectors
|
|
|
|
|
NoMonomorphismRestriction
|
|
|
|
|
OverloadedRecordDot
|
|
|
|
|
OverloadedStrings
|
|
|
|
|
RecordWildCards
|
|
|
|
|
ViewPatterns
|
|
|
|
|
ghc-options:
|
|
|
|
|
-Wall
|
|
|
|
|
-fdefer-type-errors
|
2026-02-20 09:08:16 +00:00
|
|
|
build-depends:
|
2026-03-25 00:29:30 +00:00
|
|
|
base,
|
2026-02-20 09:08:16 +00:00
|
|
|
bytestring,
|
|
|
|
|
extra,
|
|
|
|
|
mtl,
|
|
|
|
|
process,
|
|
|
|
|
text,
|
|
|
|
|
|
|
|
|
|
library
|
|
|
|
|
import: common
|
|
|
|
|
exposed-modules:
|
|
|
|
|
GarnetRs.Raw
|
|
|
|
|
GarnetRs.Wrapped
|
|
|
|
|
hs-source-dirs: lib
|
2026-02-23 12:04:47 +00:00
|
|
|
include-dirs: rust/target/debug
|
2026-04-13 13:03:50 +01:00
|
|
|
-- HLS gives up entirely when the header is malformed if we do this
|
|
|
|
|
-- and anyway, I don't think it gives us dependency tracking like `extra-source-files` does
|
|
|
|
|
-- includes: garnet_rs.h
|
2026-03-25 12:36:52 +00:00
|
|
|
extra-bundled-libraries: Cgarnet_rs
|
2026-02-20 09:08:16 +00:00
|
|
|
build-depends:
|
|
|
|
|
hs-bindgen,
|
|
|
|
|
hs-bindgen-runtime,
|
|
|
|
|
template-haskell,
|
|
|
|
|
|
|
|
|
|
executable garnet
|
|
|
|
|
import: common
|
|
|
|
|
main-is: Main.hs
|
|
|
|
|
hs-source-dirs: exe
|
|
|
|
|
ghc-options:
|
2026-02-17 14:57:34 +00:00
|
|
|
-threaded
|
|
|
|
|
-rtsopts
|
|
|
|
|
-with-rtsopts=-N
|
|
|
|
|
build-depends:
|
2026-02-20 09:08:16 +00:00
|
|
|
garnet,
|