|
| 1 | +cabal-version: 3.0 |
| 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 'c-rogueutil' generated by |
| 10 | +-- 'cabal init'. For further documentation, see: |
| 11 | +-- http://haskell.org/cabal/users-guide/ |
| 12 | +-- |
| 13 | +-- The name of the package. |
| 14 | +name: c-rogueutil |
| 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 | +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 | +license: BSD-3-Clause |
| 33 | + |
| 34 | +-- The file containing the license text. |
| 35 | +license-file: LICENSE |
| 36 | + |
| 37 | +-- The package author(s). |
| 38 | +author: Armando Santos |
| 39 | + |
| 40 | +-- An email address to which users can send suggestions, bug reports, and patches. |
| 41 | + |
| 42 | + |
| 43 | +-- A copyright notice. |
| 44 | +-- copyright: |
| 45 | +build-type: Simple |
| 46 | + |
| 47 | +-- Extra doc files to be distributed with the package, such as a CHANGELOG or a README. |
| 48 | +extra-doc-files: CHANGELOG.md |
| 49 | + |
| 50 | +-- Extra source files to be distributed with the package, such as examples, or a tutorial module. |
| 51 | +-- extra-source-files: |
| 52 | + |
| 53 | +common warnings |
| 54 | + ghc-options: -Wall |
| 55 | + |
| 56 | +library |
| 57 | + -- Import common warning flags. |
| 58 | + import: warnings |
| 59 | + |
| 60 | + -- Modules exported by the library. |
| 61 | + exposed-modules: RogueUtil.Generated |
| 62 | + RogueUtil.Generated.Safe |
| 63 | + RogueUtil.Generated.Unsafe |
| 64 | + RogueUtil.Generated.Global |
| 65 | + RogueUtil.Generated.FunPtr |
| 66 | + |
| 67 | + -- Modules included in this library but not exported. |
| 68 | + -- other-modules: |
| 69 | + |
| 70 | + -- LANGUAGE extensions used by modules in this package. |
| 71 | + -- other-extensions: |
| 72 | + |
| 73 | + -- Other library packages from which modules are imported. |
| 74 | + build-depends: base, |
| 75 | + hs-bindgen-runtime |
| 76 | + |
| 77 | + -- Directories containing source files. |
| 78 | + hs-source-dirs: src |
| 79 | + |
| 80 | + -- Base language which the package is written in. |
| 81 | + default-language: Haskell2010 |
| 82 | + |
| 83 | +executable c-rogueutil |
| 84 | + -- Import common warning flags. |
| 85 | + import: warnings |
| 86 | + |
| 87 | + -- .hs or .lhs file containing the Main module. |
| 88 | + main-is: Main.hs |
| 89 | + |
| 90 | + -- Modules included in this executable, other than Main. |
| 91 | + -- other-modules: |
| 92 | + |
| 93 | + -- LANGUAGE extensions used by modules in this package. |
| 94 | + -- other-extensions: |
| 95 | + |
| 96 | + -- Other library packages from which modules are imported. |
| 97 | + build-depends: |
| 98 | + base, |
| 99 | + c-rogueutil |
| 100 | + |
| 101 | + -- Directories containing source files. |
| 102 | + hs-source-dirs: app |
| 103 | + |
| 104 | + -- Base language which the package is written in. |
| 105 | + default-language: Haskell2010 |
0 commit comments