made use of common settings

This commit is contained in:
Felix Dilke 2026-01-30 17:02:29 +00:00
parent 7bc407536a
commit eb7c1b4110

View File

@ -51,21 +51,18 @@ extra-doc-files: CHANGELOG.md
-- Extra source files to be distributed with the package, such as examples, or a tutorial module.
-- extra-source-files:
common commonSettings
-- Base language which the package is written in.
default-language: Haskell2010
default-extensions:
OverloadedStrings
common warnings
ghc-options: -Wall
test-suite haskell-exps-test
-- Import common warning flags.
import: warnings
-- Base language which the package is written in.
default-language: Haskell2010
-- Modules included in this executable, other than Main.
-- other-modules:
-- LANGUAGE extensions used by modules in this package.
-- other-extensions:
import: warnings, commonSettings
-- The interface type and version of the test suite.
type: exitcode-stdio-1.0
@ -83,11 +80,9 @@ test-suite haskell-exps-test
Test.ArithmeticParserSpec,
Test.Datalog.DatalogParserSpec,
Test.Datalog.InMemoryDBSpec
default-extensions:
OverloadedStrings
library langfeatures
default-language: Haskell2010
import: warnings, commonSettings
build-depends: base, containers, megaparsec, parser-combinators, text
hs-source-dirs: src
exposed-modules: Ologs
@ -97,15 +92,11 @@ library langfeatures
Datalog.InMemoryDB
Datalog.Rules
Datalog.DatalogDB
ghc-options: -Wall
default-extensions:
OverloadedStrings
executable haskell-experiments
default-language: Haskell2010
import: warnings, commonSettings
build-depends: base, containers
main-is: Main.hs
hs-source-dirs: src
default-extensions:
OverloadedStrings