improving cabal build configuration

This commit is contained in:
2024-11-09 19:28:05 +00:00
parent 427f47cdf4
commit c481eb0b5c
3 changed files with 12 additions and 14 deletions

1
haskell/.gitignore vendored
View File

@@ -11,3 +11,4 @@ server
key.pem
cert.pem
cabal.project.local

4
haskell/cabal.project Normal file
View File

@@ -0,0 +1,4 @@
packages: ./p2prc.cabal
index-state: 2024-11-09T17:56:52Z

View File

@@ -1,19 +1,12 @@
cabal-version: 3.0
-- The cabal-version field refers to the version of the .cabal specification,
-- and can be different from the cabal-install (the tool) version and the
-- Cabal (the library) version you are using. As such, the Cabal (the library)
-- version used must be equal or greater than the version stated in this field.
-- Starting from the specification version 2.2, the cabal-version field must be
-- the first thing in the cabal file.
-- Initial package description 'p2prc' generated by
-- 'cabal init'. For further documentation, see:
-- http://haskell.org/cabal/users-guide/
--
-- The name of the package.
name: p2prc
-- The package version.
-- See the Haskell package versioning policy (PVP) for standards
-- guiding when and how versions should be incremented.
@@ -24,10 +17,10 @@ name: p2prc
version: 0.1.0.0
-- A short (one-line) description of the package.
-- synopsis:
synopsis: p2prc haskell library
-- A longer description of the package.
-- description:
description: Implements a client interface to the P2Prc networking runtime
-- The license under which the package is released.
license: GPL-3.0-only
@@ -59,6 +52,9 @@ executable p2prc
-- Import common warning flags.
import: warnings
-- Directories containing source files.
hs-source-dirs: src
-- .hs or .lhs file containing the Main module.
main-is: Main.hs
@@ -77,9 +73,6 @@ executable p2prc
, directory
, p2prc
-- Directories containing source files.
hs-source-dirs: src
-- Base language which the package is written in.
default-language: GHC2021