diff --git a/haskell/.gitignore b/haskell/.gitignore index 14613be..c7af4d1 100644 --- a/haskell/.gitignore +++ b/haskell/.gitignore @@ -11,3 +11,4 @@ server key.pem cert.pem +cabal.project.local diff --git a/haskell/cabal.project b/haskell/cabal.project new file mode 100644 index 0000000..3293760 --- /dev/null +++ b/haskell/cabal.project @@ -0,0 +1,4 @@ + +packages: ./p2prc.cabal + +index-state: 2024-11-09T17:56:52Z diff --git a/haskell/p2prc.cabal b/haskell/p2prc.cabal index a39a2fc..3ab21d5 100644 --- a/haskell/p2prc.cabal +++ b/haskell/p2prc.cabal @@ -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