2021-08-20 17:24:06 +03:00
|
|
|
cabal-version: 3.4
|
2021-08-20 17:44:41 +03:00
|
|
|
name: calculator-lib
|
2021-08-20 17:24:06 +03:00
|
|
|
version: 0.1.0.0
|
|
|
|
|
|
|
|
-- A short (one-line) description of the package.
|
|
|
|
-- synopsis:
|
|
|
|
|
|
|
|
-- A longer description of the package.
|
|
|
|
-- description:
|
|
|
|
|
|
|
|
license: BSD-3-Clause
|
|
|
|
license-file: LICENSE
|
|
|
|
author: Jamie Willis and Nicolas Wu
|
|
|
|
maintainer: j.willis19@imperial.ac.uk
|
|
|
|
|
|
|
|
extra-source-files: CHANGELOG.md
|
|
|
|
|
2021-08-20 17:44:41 +03:00
|
|
|
library
|
|
|
|
exposed-modules: Miniparsec,
|
2021-08-20 17:24:06 +03:00
|
|
|
Miniparsec.Impl,
|
2021-08-20 18:38:47 +03:00
|
|
|
WeakAST,
|
|
|
|
StrongAST,
|
|
|
|
Pretty,
|
|
|
|
Convert,
|
2021-08-20 17:24:06 +03:00
|
|
|
Interpreter,
|
|
|
|
Parser
|
|
|
|
|
2021-08-24 17:20:46 +03:00
|
|
|
build-depends: base >=4.13,
|
2021-08-20 17:24:06 +03:00
|
|
|
selective,
|
|
|
|
containers
|
|
|
|
hs-source-dirs: src
|
|
|
|
default-language: Haskell2010
|
2021-08-20 17:44:41 +03:00
|
|
|
|
|
|
|
executable calculator
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: main
|
2021-08-24 17:20:46 +03:00
|
|
|
build-depends: base >=4.13,
|
2021-08-20 17:44:41 +03:00
|
|
|
calculator-lib
|
|
|
|
|
|
|
|
test-suite parser-test
|
|
|
|
type: exitcode-stdio-1.0
|
2021-08-24 17:20:46 +03:00
|
|
|
build-depends: base >=4.13,
|
2021-08-20 17:44:41 +03:00
|
|
|
calculator-lib,
|
|
|
|
tasty,
|
|
|
|
tasty-hunit,
|
|
|
|
tasty-quickcheck
|
|
|
|
main-is: Main.hs
|
2021-08-20 18:38:47 +03:00
|
|
|
hs-source-dirs: test/parser
|
2021-08-20 19:19:58 +03:00
|
|
|
test/common
|
|
|
|
other-modules: Arbitrary
|
2021-08-20 18:38:47 +03:00
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
test-suite convert-test
|
|
|
|
type: exitcode-stdio-1.0
|
2021-08-24 17:20:46 +03:00
|
|
|
build-depends: base >=4.13,
|
2021-08-20 18:38:47 +03:00
|
|
|
calculator-lib,
|
|
|
|
tasty,
|
|
|
|
tasty-quickcheck
|
|
|
|
main-is: Main.hs
|
|
|
|
hs-source-dirs: test/convert
|
2021-08-20 19:19:58 +03:00
|
|
|
test/common
|
|
|
|
other-modules: Arbitrary
|
2021-08-20 17:44:41 +03:00
|
|
|
default-language: Haskell2010
|