Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added the Compact data modules #2520

Merged
merged 19 commits into from
Oct 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion cabal.project
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ packages:
libs/non-integral
libs/small-steps
libs/small-steps-test
libs/compact-map

-- Deprecations
eras/shelley/chain-and-ledger/executable-spec
Expand Down Expand Up @@ -172,6 +173,9 @@ package cardano-ledger-test
package cardano-protocol-tpraos
ghc-options: -Werror

package compact-map
ghc-options: -Werror

package non-integral
ghc-options: -Werror

Expand All @@ -183,4 +187,3 @@ package small-steps-test

package small-steps
ghc-options: -Werror

3 changes: 3 additions & 0 deletions libs/compact-map/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Revision history for compact-map


3 changes: 3 additions & 0 deletions libs/compact-map/Setup.hs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import Distribution.Simple

main = defaultMain
62 changes: 62 additions & 0 deletions libs/compact-map/compact-map.cabal
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
cabal-version: 2.2

name: compact-map
version: 0.1.0.0
synopsis: A KeyMap that is based on collisionless HashMap implementation
homepage: https://github.com/input-output-hk/cardano-legder-specs
license: Apache-2.0
author: IOHK Formal Methods Team
maintainer: [email protected]
category: Control
build-type: Simple
extra-source-files: CHANGELOG.md

source-repository head
type: git
location: https://github.com/input-output-hk/cardano-ledger-specs
subdir: libs/compact-map

common project-config
default-language: Haskell2010

ghc-options: -Wall
-Wcompat
-Wincomplete-record-updates
-Wincomplete-uni-patterns
-Wredundant-constraints
-Wunused-packages

library
import: project-config

exposed-modules: Data.Compact.KeyMap
, Data.Compact.HashMap
other-modules: Data.Compact.Class
build-depends: base >=4.11 && <5
, array
, containers
, deepseq
, prettyprinter
, primitive
, random
, text
, cardano-prelude
hs-source-dirs: src

test-suite tests
import: project-config

hs-source-dirs: test
main-is: Main.hs
other-modules: Test.Compact.KeyMap
type: exitcode-stdio-1.0
default-language: Haskell2010
build-depends: base
-- , containers
, tasty
-- , tasty-expected-failure
, tasty-quickcheck
-- , tasty-hunit
, compact-map
, QuickCheck
ghc-options: -threaded
Loading