2024-10-24 17:45:05 +02:00
|
|
|
cabal-version: 3.0
|
|
|
|
|
|
|
|
name: miniwasm
|
|
|
|
version: 0.0.0.0
|
|
|
|
build-type: Simple
|
|
|
|
|
|
|
|
common common-options
|
|
|
|
default-language: GHC2021
|
|
|
|
default-extensions:
|
|
|
|
DuplicateRecordFields
|
|
|
|
NamedFieldPuns
|
|
|
|
OverloadedRecordDot
|
|
|
|
RecordWildCards
|
|
|
|
|
|
|
|
ghc-options:
|
|
|
|
-Wall
|
|
|
|
-Wno-name-shadowing
|
|
|
|
-Wno-partial-fields
|
|
|
|
-Wno-unused-imports
|
|
|
|
-Wno-unused-matches
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
base >=4.16 && <5,
|
|
|
|
lio
|
|
|
|
|
|
|
|
library
|
|
|
|
import: common-options
|
|
|
|
|
|
|
|
hs-source-dirs: src
|
|
|
|
exposed-modules:
|
|
|
|
MiniWasm.Syntax
|
2024-11-06 12:41:23 +01:00
|
|
|
--MiniWasm.Validation
|
2024-10-24 17:45:05 +02:00
|
|
|
MiniWasm.Execution
|
|
|
|
MiniWasm.TestCases.SmallStep
|
|
|
|
MiniWasm.TestCases.Programs
|
|
|
|
|
|
|
|
test-suite miniwasm-test
|
|
|
|
import: common-options
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
|
|
|
hs-source-dirs: test
|
|
|
|
main-is: Main.hs
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
miniwasm
|
|
|
|
, tasty ^>= 1.4.3
|
|
|
|
, tasty-hunit ^>= 0.10.0.3
|
|
|
|
|
|
|
|
executable miniwasm
|
|
|
|
import: common-options
|
|
|
|
|
|
|
|
hs-source-dirs: app
|
|
|
|
main-is: Main.hs
|
|
|
|
|
|
|
|
build-depends:
|
|
|
|
miniwasm
|