Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move new KeyMap/HashMap into its own package compact-map
- Loading branch information
Showing
10 changed files
with
93 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Revision history for compact-map | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import Distribution.Simple | ||
|
||
main = defaultMain |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: formal.methods@iohk.io | ||
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 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module Main where | ||
|
||
import Test.Compact.KeyMap | ||
import Test.Tasty | ||
|
||
-- ==================================================================================== | ||
|
||
tests :: TestTree | ||
tests = | ||
testGroup | ||
"compcat-map" | ||
[ keyMapTests | ||
] | ||
|
||
main :: IO () | ||
main = defaultMain tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module Test.Compact.KeyMap where | ||
|
||
import Data.Compact.KeyMap | ||
import Test.Tasty | ||
|
||
keyMapTests :: TestTree | ||
keyMapTests = testGroup "KeyMap" [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters