2020-03-04 12:43:13 +01:00
|
|
|
cabal-version: 2.4
|
|
|
|
|
|
|
|
-- Initial package description 'Hash2Pub.cabal' generated by 'cabal init'.
|
|
|
|
-- For further documentation, see http://haskell.org/cabal/users-guide/
|
|
|
|
|
|
|
|
-- The name of the package.
|
|
|
|
name: Hash2Pub
|
|
|
|
|
|
|
|
-- The package version. See the Haskell package versioning policy (PVP)
|
|
|
|
-- for standards guiding when and how versions should be incremented.
|
|
|
|
-- https://pvp.haskell.org
|
|
|
|
-- PVP summary: +-+------- breaking API changes
|
|
|
|
-- | | +----- non-breaking API additions
|
|
|
|
-- | | | +--- code changes with no API change
|
|
|
|
version: 0.0.0.1
|
|
|
|
|
|
|
|
-- A short (one-line) description of the package.
|
|
|
|
synopsis: a fully-decentralised relay for global hashtag federation in ActivityPub systems
|
|
|
|
|
|
|
|
-- A longer description of the package.
|
|
|
|
-- description:
|
|
|
|
|
|
|
|
-- A URL where users can report bugs.
|
|
|
|
-- bug-reports:
|
|
|
|
|
|
|
|
-- The license under which the package is released.
|
|
|
|
license: AGPL-3.0-or-later
|
|
|
|
|
|
|
|
-- The file containing the license text.
|
|
|
|
license-file: LICENSE
|
|
|
|
|
|
|
|
-- The package author(s).
|
|
|
|
author: Trolli Schmittlauch
|
|
|
|
|
|
|
|
-- An email address to which users can send suggestions, bug reports, and
|
|
|
|
-- patches.
|
|
|
|
maintainer: t.schmittlauch+hackage@orlives.de
|
|
|
|
|
|
|
|
-- A copyright notice.
|
|
|
|
-- copyright:
|
|
|
|
|
|
|
|
category: Network
|
|
|
|
|
|
|
|
-- Extra files to be distributed with the package, such as examples or a
|
|
|
|
-- README.
|
|
|
|
extra-source-files: CHANGELOG.md
|
|
|
|
|
|
|
|
common deps
|
2020-09-10 23:54:51 +02:00
|
|
|
build-depends: base ^>=4.12.0.0, containers ^>=0.6.0.1, bytestring, utf8-string ^>=1.0.1.1, network ^>=2.8.0.1, time ^>=1.8.0.2, cmdargs ^>= 0.10, cryptonite ^>= 0.25, memory, async, stm, asn1-encoding, asn1-types, asn1-parse, publicsuffix, network-byte-order, safe, iproute, mtl, random, servant, servant-server, servant-client, warp, text, unordered-containers, hashable, unicode-transforms, http-client, http-types, unbounded-delays, dlist, formatting
|
2020-08-31 13:37:40 +02:00
|
|
|
ghc-options: -Wall -Wpartial-fields -O2
|
2020-03-04 12:43:13 +01:00
|
|
|
|
2020-03-04 17:24:03 +01:00
|
|
|
|
|
|
|
|
|
|
|
library
|
|
|
|
import: deps
|
|
|
|
|
|
|
|
-- Modules exported by the library.
|
2020-07-30 01:21:56 +02:00
|
|
|
exposed-modules: Hash2Pub.FediChord, Hash2Pub.FediChordTypes, Hash2Pub.DHTProtocol, Hash2Pub.ASN1Coding, Hash2Pub.ProtocolTypes, Hash2Pub.PostService, Hash2Pub.RingMap
|
2020-03-04 17:24:03 +01:00
|
|
|
|
|
|
|
-- Modules included in this library but not exported.
|
2020-09-07 10:32:58 +02:00
|
|
|
other-modules: Hash2Pub.Utils, Hash2Pub.PostService.API
|
2020-03-04 17:24:03 +01:00
|
|
|
|
|
|
|
-- LANGUAGE extensions used by modules in this package.
|
2020-03-20 19:00:00 +01:00
|
|
|
other-extensions: GeneralizedNewtypeDeriving, DataKinds, OverloadedStrings
|
2020-03-04 17:24:03 +01:00
|
|
|
|
|
|
|
-- Directories containing source files.
|
|
|
|
hs-source-dirs: src
|
|
|
|
|
|
|
|
-- Base language which the package is written in.
|
|
|
|
default-language: Haskell2010
|
2020-03-04 12:43:13 +01:00
|
|
|
|
|
|
|
executable Hash2Pub
|
|
|
|
-- Other library packages from which modules are imported.
|
|
|
|
import: deps
|
|
|
|
|
2020-03-16 00:22:21 +01:00
|
|
|
-- adding the library as a dependency
|
2020-05-12 21:24:56 +02:00
|
|
|
build-depends: Hash2Pub
|
2020-03-16 00:22:21 +01:00
|
|
|
|
2020-03-04 12:43:13 +01:00
|
|
|
-- .hs or .lhs file containing the Main module.
|
|
|
|
main-is: Main.hs
|
|
|
|
|
|
|
|
-- Modules included in this executable, other than Main.
|
2020-03-16 00:22:21 +01:00
|
|
|
--other-modules:
|
2020-03-04 12:43:13 +01:00
|
|
|
|
|
|
|
-- LANGUAGE extensions used by modules in this package.
|
|
|
|
other-extensions: GeneralizedNewtypeDeriving
|
|
|
|
|
|
|
|
-- Directories containing source files.
|
2020-06-08 18:57:53 +02:00
|
|
|
hs-source-dirs: app
|
2020-03-04 12:43:13 +01:00
|
|
|
|
|
|
|
-- Base language which the package is written in.
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
2020-04-01 21:14:16 +02:00
|
|
|
ghc-options: -threaded
|
|
|
|
|
2020-08-19 15:49:39 +02:00
|
|
|
executable Experiment
|
|
|
|
-- experiment runner
|
|
|
|
import: deps
|
|
|
|
|
|
|
|
build-depends: Hash2Pub
|
|
|
|
|
|
|
|
main-is: Experiment.hs
|
|
|
|
|
|
|
|
hs-source-dirs: app
|
|
|
|
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
ghc-options: -threaded
|
|
|
|
|
2020-03-04 12:43:13 +01:00
|
|
|
|
|
|
|
test-suite Hash2Pub-test
|
|
|
|
-- Test dependencies.
|
2020-03-04 17:24:03 +01:00
|
|
|
import: deps
|
2020-03-04 12:43:13 +01:00
|
|
|
|
|
|
|
-- Base language which the package is written in.
|
|
|
|
default-language: Haskell2010
|
|
|
|
|
|
|
|
-- The interface type and version of the test suite.
|
|
|
|
type: exitcode-stdio-1.0
|
|
|
|
|
|
|
|
-- The directory where the test specifications are found.
|
|
|
|
hs-source-dirs: test
|
|
|
|
|
|
|
|
-- The entrypoint to the test suite.
|
2020-03-16 01:39:17 +01:00
|
|
|
main-is: Specs.hs
|
|
|
|
other-modules: FediChordSpec
|
2020-03-20 19:00:00 +01:00
|
|
|
other-extensions: OverloadedStrings
|
2020-03-04 17:24:03 +01:00
|
|
|
build-depends: hspec, Hash2Pub
|
2020-03-04 12:43:13 +01:00
|
|
|
|
2020-04-01 21:14:16 +02:00
|
|
|
ghc-options: -threaded
|