Split in lib and tests
This commit is contained in:
52
elna.cabal
52
elna.cabal
@@ -15,19 +15,49 @@ build-type: Simple
|
||||
extra-doc-files: TODO README
|
||||
|
||||
common warnings
|
||||
ghc-options: -Wall
|
||||
|
||||
executable elna
|
||||
import: warnings
|
||||
main-is: Main.hs
|
||||
other-modules:
|
||||
Language.Elna.AST
|
||||
Language.Elna.Parser
|
||||
default-extensions:
|
||||
OverloadedStrings
|
||||
build-depends:
|
||||
base ^>=4.17.2.1,
|
||||
megaparsec ^>= 9.6,
|
||||
text ^>= 2.0
|
||||
hs-source-dirs: src
|
||||
ghc-options: -Wall
|
||||
default-extensions:
|
||||
ExplicitForAll,
|
||||
OverloadedStrings
|
||||
|
||||
library elna-internal
|
||||
import: warnings
|
||||
exposed-modules:
|
||||
Language.Elna.AST
|
||||
Language.Elna.Parser
|
||||
build-depends:
|
||||
vector >= 0.12 && < 0.14
|
||||
hs-source-dirs: lib
|
||||
|
||||
executable elna
|
||||
import: warnings
|
||||
main-is: Main.hs
|
||||
build-depends:
|
||||
elna-internal
|
||||
hs-source-dirs: src
|
||||
default-language: GHC2021
|
||||
|
||||
test-suite elna-test
|
||||
import: warnings
|
||||
type: exitcode-stdio-1.0
|
||||
main-is: Spec.hs
|
||||
other-modules:
|
||||
Language.Elna.ParserSpec
|
||||
hs-source-dirs:
|
||||
tests
|
||||
ghc-options: -threaded -rtsopts -with-rtsopts=-N -Wall
|
||||
|
||||
build-depends:
|
||||
elna-internal,
|
||||
hspec >= 2.10.9 && < 2.12,
|
||||
hspec-expectations ^>= 0.8.2,
|
||||
hspec-megaparsec ^>= 2.2.0,
|
||||
text,
|
||||
vector
|
||||
build-tool-depends:
|
||||
hspec-discover:hspec-discover
|
||||
default-language: GHC2021
|
||||
|
||||
Reference in New Issue
Block a user