packages feed

raft-consensus-serialise-instances-0.2.0.0: raft-consensus-serialise-instances.cabal

cabal-version:      3.4
name:               raft-consensus-serialise-instances
-- Matching the major version of the supported 'raft-consnsus'
version:            0.2.0.0
synopsis:           Serialise instances for the raft-consensus library
-- description:
homepage:           https://github.com/LaurentRDC/distributed-consensus
license:            BSD-3-Clause
license-file:       LICENSE
author:             Laurent P. René de Cotret
maintainer:         laurent.decotret@outlook.com
copyright:          Laurent P. René de Cotret
category:           Distributed Systems, Consensus
build-type:         Simple
extra-doc-files:    CHANGELOG.md
                    README.md

source-repository head
    type: git
    location: https://github.com/LaurentRDC/distributed-consensus
    subdir: raft-consensus-serialise-instances

common warnings
    ghc-options: -Wall
                 -Wcompat
                 -Widentities
                 -Wincomplete-uni-patterns
                 -Wincomplete-record-updates
                 -Wredundant-constraints
                 -fhide-source-paths
                 -Wpartial-fields
                 -Wunused-packages

library
    import:           warnings
    exposed-modules:  Distributed.Consensus.Raft.Serialise.Instances
    hs-source-dirs:   src
    default-language: Haskell2010
    build-depends:    base >= 4.18 && <4.23
                    , raft-consensus ^>=0.2
                    , serialise ^>=0.2

-- The following "test suite" only exists to ensure that all types
-- required to implement a server and clients are exported.
--
-- If it compiles, we're good
test-suite rcsi-interface-test
    import:           warnings
    default-language: Haskell2010
    type:             exitcode-stdio-1.0
    ghc-options:      -rtsopts
    hs-source-dirs:   tests
    main-is:          Interface/Main.hs
    other-modules:    Interface.Admin
                      Interface.Client
                      Interface.Server
    build-depends:    base >= 4.18 && <4.23
                    , bytestring
                    , raft-consensus
                    , raft-consensus-serialise-instances
                    , serialise ^>=0.2
test-suite rcsi-roundtrip-test
    import:           warnings
    default-language: Haskell2010
    type:             exitcode-stdio-1.0
    ghc-options:      -rtsopts
    hs-source-dirs:   tests
    main-is:          RoundTrip/Main.hs
    other-modules:    RoundTrip.Arbitrary
    build-depends:    base >= 4.18 && <4.23
                    , QuickCheck
                    , raft-consensus
                    , raft-consensus-serialise-instances
                    , serialise ^>=0.2
                    , tasty ^>=1.5
                    , tasty-quickcheck ^>=0.11