made use of common settings
This commit is contained in:
parent
7bc407536a
commit
eb7c1b4110
@ -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 to be distributed with the package, such as examples, or a tutorial module.
|
||||||
-- extra-source-files:
|
-- extra-source-files:
|
||||||
|
|
||||||
|
common commonSettings
|
||||||
|
-- Base language which the package is written in.
|
||||||
|
default-language: Haskell2010
|
||||||
|
default-extensions:
|
||||||
|
OverloadedStrings
|
||||||
|
|
||||||
common warnings
|
common warnings
|
||||||
ghc-options: -Wall
|
ghc-options: -Wall
|
||||||
|
|
||||||
test-suite haskell-exps-test
|
test-suite haskell-exps-test
|
||||||
-- Import common warning flags.
|
-- Import common warning flags.
|
||||||
import: warnings
|
import: warnings, commonSettings
|
||||||
|
|
||||||
-- 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:
|
|
||||||
|
|
||||||
-- The interface type and version of the test suite.
|
-- The interface type and version of the test suite.
|
||||||
type: exitcode-stdio-1.0
|
type: exitcode-stdio-1.0
|
||||||
@ -83,11 +80,9 @@ test-suite haskell-exps-test
|
|||||||
Test.ArithmeticParserSpec,
|
Test.ArithmeticParserSpec,
|
||||||
Test.Datalog.DatalogParserSpec,
|
Test.Datalog.DatalogParserSpec,
|
||||||
Test.Datalog.InMemoryDBSpec
|
Test.Datalog.InMemoryDBSpec
|
||||||
default-extensions:
|
|
||||||
OverloadedStrings
|
|
||||||
|
|
||||||
library langfeatures
|
library langfeatures
|
||||||
default-language: Haskell2010
|
import: warnings, commonSettings
|
||||||
build-depends: base, containers, megaparsec, parser-combinators, text
|
build-depends: base, containers, megaparsec, parser-combinators, text
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
exposed-modules: Ologs
|
exposed-modules: Ologs
|
||||||
@ -97,15 +92,11 @@ library langfeatures
|
|||||||
Datalog.InMemoryDB
|
Datalog.InMemoryDB
|
||||||
Datalog.Rules
|
Datalog.Rules
|
||||||
Datalog.DatalogDB
|
Datalog.DatalogDB
|
||||||
ghc-options: -Wall
|
|
||||||
default-extensions:
|
|
||||||
OverloadedStrings
|
|
||||||
|
|
||||||
executable haskell-experiments
|
executable haskell-experiments
|
||||||
default-language: Haskell2010
|
import: warnings, commonSettings
|
||||||
build-depends: base, containers
|
build-depends: base, containers
|
||||||
main-is: Main.hs
|
main-is: Main.hs
|
||||||
hs-source-dirs: src
|
hs-source-dirs: src
|
||||||
default-extensions:
|
|
||||||
OverloadedStrings
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user