-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy-haskell-project.cabal
90 lines (76 loc) · 2.58 KB
/
my-haskell-project.cabal
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
cabal-version: 2.4
-- cabal-version: 3.12
-- my package name
name: my-haskell-project
version: 0.1.0.0
synopsis: A simple Haskell project with CLI tools
description: A Haskell project that includes CLI tools for algebra, speed, and acceleration calculations.
author: NajibMalaysia
maintainer: [email protected]
license: MIT
license-file: LICENSE
category: Development
build-type: Simple
-- tests: True
-- hs-source-dirs: app, src
executable my-haskell-project
main-is: Main.hs
hs-source-dirs: app, src
other-modules: MathFunctions
build-depends: base >=4.7 && <5
default-language: Haskell2010
executable algebra
main-is: Algebra.hs
-- main-is: app/Algebra.hs
hs-source-dirs: app, src
other-modules: MathFunctions
-- other-modules: MathFunctions
build-depends: base >=4.7 && <5
default-language: Haskell2010
library
-- exposed-modules: SpeedAndAccelFunctions
exposed-modules: SpeedFunctions
hs-source-dirs: src
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
executable speed
hs-source-dirs: app, src
main-is: Speed.hs
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
-- Run test with Cabal:
-- cabal test
-- Run test with Nix:
-- nix build .#speed-tests
test-suite speed-functions-test
type: exitcode-stdio-1.0
-- main-is: SpeedFunctionsSpec.hs
main-is: Spec.hs
-- test-module: SpeedFunctionsTest
-- other-modules: SpeedFunctions, AnotherModule, YetAnotherModule
other-modules: SpeedFunctionsSpec
-- , SpeedFunctionsSpec
hs-source-dirs: test
-- , src
build-depends: base >= 4.7 && <5,
hspec >= 2.7 && <3,
my-haskell-project,
silently
ghc-options: -threaded -rtsopts -with-rtsopts=-N
default-language: Haskell2010
executable acceleration
hs-source-dirs: app, src
main-is: Acceleration.hs
build-depends: base >= 4.7 && < 5
default-language: Haskell2010
executable alarm-clock
hs-source-dirs: app
main-is: AlarmClockCLI.hs
build-depends: base >= 4.7 && < 5,
time,
async
default-language: Haskell2010
-- NOTES:
-- cabal build
-- cabal exec my-haskell-project
-- cabal exec algebra