-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- [x] Factor out `std-gen-seed` library - [x] Move `Write.Tx` modules to `cardano-balance-tx` ### Comments - Unit tests to be moved in separate PR and/or task. ### Issue Number ADP-3170
- Loading branch information
Showing
24 changed files
with
151 additions
and
56 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
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.
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
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,66 @@ | ||
cabal-version: 3.0 | ||
name: std-gen-seed | ||
version: 0.0.0.0 | ||
synopsis: Support for standard random number generator seeds | ||
license: Apache-2.0 | ||
author: HAL, Cardano Foundation | ||
maintainer: [email protected] | ||
build-type: Simple | ||
extra-doc-files: CHANGELOG.md | ||
|
||
common language | ||
default-language: Haskell2010 | ||
default-extensions: | ||
NoImplicitPrelude | ||
OverloadedStrings | ||
|
||
common opts-lib | ||
ghc-options: -Wall -Wcompat -fwarn-redundant-constraints | ||
|
||
if flag(release) | ||
ghc-options: -O2 -Werror | ||
|
||
common opts-exe | ||
ghc-options: -threaded -rtsopts -Wall | ||
|
||
if flag(release) | ||
ghc-options: -O2 -Werror | ||
|
||
flag release | ||
description: Enable optimization and `-Werror` | ||
default: False | ||
manual: True | ||
|
||
library | ||
import: language, opts-lib | ||
exposed-modules: | ||
System.Random.StdGenSeed | ||
hs-source-dirs: src | ||
build-depends: | ||
, base | ||
, random | ||
, MonadRandom | ||
, OddWord | ||
, quiet | ||
, splitmix | ||
|
||
test-suite unit | ||
import: language, opts-exe | ||
ghc-options: -with-rtsopts=-M2G -with-rtsopts=-N4 | ||
build-depends: | ||
base | ||
, hspec | ||
, QuickCheck | ||
, std-gen-seed | ||
, random | ||
build-tool-depends: | ||
hspec-discover:hspec-discover | ||
type: | ||
exitcode-stdio-1.0 | ||
hs-source-dirs: | ||
test/unit | ||
main-is: | ||
std-gen-seed-unit-test.hs | ||
other-modules: | ||
System.Random.StdGenSeedSpec | ||
|
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 @@ | ||
{-# OPTIONS_GHC -F -pgmF hspec-discover #-} |
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
Oops, something went wrong.