|
1 | 1 | cabal-version: 3.4
|
2 |
| --- The cabal-version field refers to the version of the .cabal specification, |
3 |
| --- and can be different from the cabal-install (the tool) version and the |
4 |
| --- Cabal (the library) version you are using. As such, the Cabal (the library) |
5 |
| --- version used must be equal or greater than the version stated in this field. |
6 |
| --- Starting from the specification version 2.2, the cabal-version field must be |
7 |
| --- the first thing in the cabal file. |
8 |
| - |
9 |
| --- Initial package description 'my-grep' generated by |
10 |
| --- 'cabal init'. For further documentation, see: |
11 |
| --- http://haskell.org/cabal/users-guide/ |
12 |
| --- |
13 |
| --- The name of the package. |
14 | 2 | name: my-grep
|
15 |
| - |
16 |
| --- The package version. |
17 |
| --- See the Haskell package versioning policy (PVP) for standards |
18 |
| --- guiding when and how versions should be incremented. |
19 |
| --- https://pvp.haskell.org |
20 |
| --- PVP summary: +-+------- breaking API changes |
21 |
| --- | | +----- non-breaking API additions |
22 |
| --- | | | +--- code changes with no API change |
23 | 3 | version: 0.1.0.0
|
24 |
| - |
25 |
| --- A short (one-line) description of the package. |
26 |
| --- synopsis: |
27 |
| - |
28 |
| --- A longer description of the package. |
29 |
| --- description: |
30 |
| - |
31 |
| --- The license under which the package is released. |
32 | 4 | license: BSD-2-Clause
|
33 |
| - |
34 |
| --- The file containing the license text. |
35 | 5 | license-file: LICENSE
|
36 |
| - |
37 |
| --- The package author(s). |
38 | 6 | author: tusharad
|
39 |
| - |
40 |
| --- An email address to which users can send suggestions, bug reports, and patches. |
41 | 7 | maintainer: tusharadhatrao@gmail.com
|
42 |
| - |
43 |
| --- A copyright notice. |
44 |
| --- copyright: |
45 | 8 | category: Text
|
46 | 9 | build-type: Simple
|
47 |
| - |
48 |
| --- Extra doc files to be distributed with the package, such as a CHANGELOG or a README. |
49 | 10 | extra-doc-files: CHANGELOG.md
|
50 |
| - |
51 |
| --- Extra source files to be distributed with the package, such as examples, or a tutorial module. |
52 |
| --- extra-source-files: |
53 |
| - |
54 | 11 | common warnings
|
55 |
| - ghc-options: -Wall |
| 12 | + ghc-options: -Wall -threaded -rtsopts |
56 | 13 |
|
57 | 14 | library
|
58 |
| - -- Import common warning flags. |
59 | 15 | import: warnings
|
60 |
| - |
61 |
| - -- Modules exported by the library. |
62 | 16 | exposed-modules: MyLib
|
63 | 17 | , MyGrep.Common.Types
|
64 | 18 | , MyGrep.Common.Utils
|
65 | 19 | , MyGrep.Core
|
66 | 20 | , MyGrep.Search
|
67 | 21 |
|
68 |
| - -- Modules included in this library but not exported. |
69 |
| - -- other-modules: |
70 |
| - |
71 |
| - -- LANGUAGE extensions used by modules in this package. |
72 |
| - -- other-extensions: |
73 |
| - |
74 |
| - -- Other library packages from which modules are imported. |
75 | 22 | build-depends: base ^>=4.17.2.1
|
76 | 23 | , text
|
77 | 24 | , directory
|
78 | 25 | , filepath
|
79 | 26 | , safe-coloured-text
|
80 | 27 |
|
81 |
| - -- Directories containing source files. |
82 | 28 | hs-source-dirs: src
|
83 | 29 |
|
84 |
| - -- Base language which the package is written in. |
85 | 30 | default-language: GHC2021
|
86 | 31 |
|
87 | 32 | executable my-grep
|
88 |
| - -- Import common warning flags. |
89 | 33 | import: warnings
|
90 | 34 |
|
91 |
| - -- .hs or .lhs file containing the Main module. |
92 | 35 | main-is: Main.hs
|
93 | 36 |
|
94 |
| - -- Modules included in this executable, other than Main. |
95 |
| - -- other-modules: |
96 |
| - |
97 |
| - -- LANGUAGE extensions used by modules in this package. |
98 |
| - -- other-extensions: |
99 |
| - |
100 |
| - -- Other library packages from which modules are imported. |
101 | 37 | build-depends:
|
102 | 38 | base ^>=4.17.2.1,
|
103 | 39 | my-grep
|
104 |
| - |
105 |
| - -- Directories containing source files. |
106 | 40 | hs-source-dirs: app
|
107 |
| - |
108 |
| - -- Base language which the package is written in. |
109 | 41 | default-language: GHC2021
|
110 | 42 |
|
111 | 43 | test-suite my-grep-test
|
112 |
| - -- Import common warning flags. |
113 | 44 | import: warnings
|
114 |
| - |
115 |
| - -- Base language which the package is written in. |
116 | 45 | default-language: GHC2021
|
117 |
| - |
118 |
| - -- Modules included in this executable, other than Main. |
119 |
| - -- other-modules: |
120 |
| - |
121 |
| - -- LANGUAGE extensions used by modules in this package. |
122 |
| - -- other-extensions: |
123 |
| - |
124 |
| - -- The interface type and version of the test suite. |
125 | 46 | type: exitcode-stdio-1.0
|
126 |
| - |
127 |
| - -- Directories containing source files. |
128 | 47 | hs-source-dirs: test
|
129 | 48 |
|
130 |
| - -- The entrypoint to the test suite. |
131 | 49 | main-is: Main.hs
|
132 |
| - |
133 |
| - -- Test dependencies. |
134 | 50 | build-depends:
|
135 | 51 | base ^>=4.17.2.1,
|
136 | 52 | my-grep
|
0 commit comments