This repository was archived by the owner on Jan 9, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 116
Hashable-independent Aeson instances #1047
Closed
Changes from 110 commits
Commits
Show all changes
168 commits
Select commit
Hold shift + click to select a range
1ccffbe
toEncoding instances
larskuhtz 0446ffa
misc and aeson-2
larskuhtz efcf637
fixes and JSON compat tests
larskuhtz 53dd9a5
...
larskuhtz 36dc283
...
larskuhtz f13cab2
...
larskuhtz 6b6b1d4
fix JSONKey instance for FullyQualifiedName
larskuhtz 26c5520
move arbitrary instances out of Term
larskuhtz d8fc054
split up Term module
larskuhtz cdf5eda
remove outdated CPP
larskuhtz cbf6474
fix hspec build without tools
larskuhtz ff9cb1e
less inlining
larskuhtz 14b8e2b
add LegacyValue for JSON Value
larskuhtz 72d356a
use LegacyValue for persisting Value
larskuhtz 13772ad
Merge branch 'master' into lars/wip
larskuhtz 3a8c741
fix some FIXMEs and tests
larskuhtz dceee4f
...
larskuhtz 180cdf1
remove module comments
larskuhtz c8aaebd
address review comments
larskuhtz 7fb0dd5
Merge branch 'master' into lars/wip
larskuhtz e7589db
Merge branch 'master' into lars/wip
larskuhtz 81b2b46
Merge branch 'master' into lars/wip
larskuhtz a823e0b
fix some white spacing
larskuhtz 597c7c0
misc aeson toEncoding fixes
larskuhtz f70ad13
readd requestKeyToB16Text and fixes to arbitrary instances
larskuhtz ce15ed8
remove redundant upper bound on entropy
larskuhtz d3369c5
aeson-2
larskuhtz c43f0b2
remove outdated code and macros
larskuhtz 78f3e64
cleanup dependencies
larskuhtz 23770a4
update outdated packages
larskuhtz 39c197e
update ci build
larskuhtz 6e9fb08
support ghc-9.2
larskuhtz 9319126
ignore upper bounds on contrainted dependencies
larskuhtz c5ca7f9
relax bounds introduced by servant
larskuhtz 4b7ea24
aeson-2 support for CapabilityGuard
larskuhtz e927dd5
build with +cryptonite-ed25519
larskuhtz 6aaebbf
upgrade z3 version for ubuntu-22.04 ci builds
larskuhtz 1a34527
Merge branch 'master' into lars/wip
larskuhtz b2ca93a
Merge branch 'master' into lars/wip
larskuhtz c8d35ab
Merge branch 'master' into lars/wip
larskuhtz 5dbdfa7
fix legacy encoding for ModuleData
larskuhtz 7829509
Constrain some arbitrary instances to support more roundtrip tests
larskuhtz 4767f61
disambiugate sums in JSON parsers. Make 'info' and 'i' optional
larskuhtz 05ea97a
allow nested LegacyValues
larskuhtz 1846fc5
add JsonDecode benchmark
larskuhtz 51fa9a0
fix json-decode bechmark
larskuhtz 0406494
support megaparsec 9.3
larskuhtz c16791b
use LegacyValue in ExecMsg
larskuhtz 594978f
Merge branch 'master' into lars/wip
larskuhtz 00320c6
...
larskuhtz 6309ac5
Merge branch 'master' into lars/wip
larskuhtz fd0a130
WIP internal json library
larskuhtz d474fa4
...
larskuhtz 5f9c9bd
...
larskuhtz 4a675c2
pact-json package
larskuhtz 3d6751e
newtype
larskuhtz a996389
redundant language pragma
larskuhtz bf08388
[wip] monomorphic txlog
larskuhtz 5513bac
Revert "[wip] monomorphic txlog"
larskuhtz 785478a
...
larskuhtz ac0ab49
...
larskuhtz 0d44d4b
...
larskuhtz f28f07e
...
larskuhtz cdcc53b
Tests passing
larskuhtz 4b99a4f
fixes for chainweb tests
larskuhtz 7867b69
...
larskuhtz dd4b288
fix mkCommand
larskuhtz f45fcc0
Revert "fix json-decode bechmark"
larskuhtz 9910f0e
Revert "add JsonDecode benchmark"
larskuhtz 1aa28f8
Merge branch 'master' into lars/wip
larskuhtz 2d5da22
Merge branch 'master' into lars/wip
larskuhtz c2bd6b4
build with ghc 9.4
larskuhtz 3d89dd2
fix module.blessed serialization
larskuhtz aa4772c
Merge branch 'master' into lars/wip
larskuhtz 51852c6
Merge branch 'master' into lars/wip
larskuhtz b06e6ff
remove redundant upper bounds
larskuhtz 9b07459
Encode instances for Paylaod and Signer
larskuhtz bceff83
fix encoding of module dependencies
larskuhtz 6c9f26a
Merge branch 'master' into lars/wip
larskuhtz 9eaf96b
Revert "remove redundant upper bounds"
larskuhtz 33eb557
update compiler versions
larskuhtz c0437a5
build image with ghc-9.4.4
larskuhtz e03360c
tests for pairings
larskuhtz fc4418f
Merge branch 'master' into lars/wip
larskuhtz 100d004
build with ghc-9.6 and remove unused SBV related definitions
larskuhtz 8ce30a5
...
larskuhtz 8651f00
fix pretty instance for Value
larskuhtz 30f27ad
update build matrix
larskuhtz 29dee0d
relax some bounds for ghc-9.6
larskuhtz f3c4333
update pact-json pin
larskuhtz efb4c35
use different order in encoding of dependencies
larskuhtz b25dbb3
...
larskuhtz 67ac748
...
larskuhtz deb5c0a
make mkInfo strict in its argument
larskuhtz 52f5d61
move musl float arithmetic into sub-library and fix it for ghc-9.6
larskuhtz 3e4ec6c
build docker image for ghc-9.6.1
larskuhtz f75f089
update github actions
larskuhtz 3ff918b
more github actions updates
larskuhtz fc605f9
use legacy order in traverseGraph
larskuhtz 151a1d9
fix error message encoding
larskuhtz 0f029cf
regenerate docs
larskuhtz 140574f
fix time codec
larskuhtz a4cfc5d
fix type in PactRPC Encode instance
larskuhtz 1a0ef89
fix mkTextInfo for unicode inputs
larskuhtz 8f9844c
fix order in which constraints are resolved
larskuhtz ad693e3
fix mkInfo
larskuhtz aab0516
make ExpParser a bit more strict
larskuhtz bf2d455
fix delta parsing for attoparsec
larskuhtz 7b578d2
Revert "move musl float arithmetic into sub-library and fix it for gh…
larskuhtz 4047fb9
Merge branch 'master' into lars/wip
larskuhtz 7266396
some linting
larskuhtz 3e93eba
one more test
larskuhtz 58ca210
remove redundant HasBytes instance
larskuhtz c72090b
Merge branch 'master' into lars/deltaparsing
larskuhtz 0d898ec
use legacy parsing
larskuhtz 9a55270
Merge branch 'master' into lars/deltaparsing
larskuhtz 6bd2cea
use legacy parser
larskuhtz a609679
Merge branch 'master' into lars/deltaparsing
larskuhtz 2a1ce93
Merge branch 'master' into lars/wip
larskuhtz d332325
Merge branch 'lars/deltaparsing' into lars/wip-deltaparsing
larskuhtz a626f89
deltaparsing tweaks (#1203)
imalsogreg 2ec274f
Merge branch 'lars/deltaparsing' into lars/wip-deltaparsing
larskuhtz a50f750
...
larskuhtz 145b474
work around buggy TokenParsing instance for StateT
larskuhtz 5cfb065
fix parser tests
larskuhtz f7c5b5c
more test fixes
larskuhtz edcb736
fix legacy parser
larskuhtz 5112979
Merge branch 'master' into lars/wip
larskuhtz 52e72c1
fix parser tests
larskuhtz 5612ab0
add missing strictness annotations
larskuhtz 54ed02e
Merge branch 'master' into lars/wip
larskuhtz 94c4fe9
more strictness
larskuhtz 23fadd0
benchmark json encoding
larskuhtz 0bf488d
Merge branch 'master' into lars/wip
larskuhtz 665edfd
be strict consistently
larskuhtz 3540437
fix roundtrip of time values
larskuhtz 438abd7
add ghc-9.4 back to the build matrix
larskuhtz 74bbf76
remove redundant imports
larskuhtz 7cea5c8
Merge branch 'master' into lars/wip
larskuhtz 9ce40d4
Merge branch 'master' into lars/wip
larskuhtz 925fd78
drop support for old hashable and some CPP cleanup
larskuhtz 44a3033
drop support for text <2
larskuhtz 4273e29
Merge branch 'master' into lars/wip
larskuhtz 7d6d593
Merge branch 'master' into lars/wip
larskuhtz 59fed8a
Merge branch 'master' into lars/wip
larskuhtz ae88e0b
Merge branch 'master' into lars/wip
larskuhtz 2a881d4
Merge branch 'master' into lars/wip
larskuhtz 6c26ec3
remove redundant Orphan for Value
larskuhtz c079b97
replace aeson encode by pact json encode
larskuhtz 6cfd4c1
Merge branch 'master' into lars/wip
larskuhtz c84dabe
fix incomplete pattern
larskuhtz 99e726b
update pact-json
larskuhtz e8d2111
servant support for PactJson
larskuhtz 1a36d19
yaml utils for GasModelSpec
larskuhtz a13526c
update pact-json pin
larskuhtz 314a7e2
fix sorting of coverage report
larskuhtz 4e7fef4
disable tojson warnings
larskuhtz ae29e8f
update pact-json pin
larskuhtz e43311a
fix gas mode spec tests
larskuhtz bca7b3e
encode instances for SQLiteConfig
larskuhtz 6c608d8
encode instance for server config
larskuhtz c6bf401
Merge branch 'master' into lars/wip
larskuhtz a66e5c8
Make ToJSON instances conditional via CPP
larskuhtz 8d05b33
json instance fixes
larskuhtz 922b180
replace cryptonite by crypton
larskuhtz e2fab87
address some issues from code review
larskuhtz 147d4f1
Merge branch 'lars/crypton' into lars/wip
larskuhtz c954c55
Merge branch 'master' into lars/wip
larskuhtz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,18 +1,52 @@ | ||
| packages: . | ||
|
|
||
| allow-older: libBF:hashable | ||
|
|
||
| -- temporary upper bounds | ||
| constraints: sbv <10 | ||
|
|
||
| -- these upper bounds are required in order to not break payload validation in chainweb | ||
| constraints: aeson <2 | ||
| constraints: base16-bytestring <1 | ||
| constraints: base64-bytestring <1.1 | ||
| constraints: hashable <1.3.1 | ||
| constraints: prettyprinter <1.6.1 | ||
| constraints: unordered-containers <0.2.16 | ||
| constraints: base64-bytestring <1.1 | ||
|
|
||
| allow-newer: base64-bytestring:* | ||
larskuhtz marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| allow-newer: base16-bytestring:* | ||
| allow-newer: prettyprinter:* | ||
|
|
||
| -- test upper bounds | ||
| constraints: hspec-golden <0.2, | ||
|
|
||
| -- The following fork provides trifecta-2.`1.1.1 which is compatible with | ||
| -- hashable >=1.4 and prettyprinter <1.7 | ||
| -- | ||
| -- trifeta >=2.1.2 requires a prettyprinter >=1.7, which isn't supported by | ||
| -- pact (since it would break mainnet replays). trifecta ==2.1.1 does not | ||
| -- support hashable >=1.4. | ||
| -- | ||
| source-repository-package | ||
| type: git | ||
| tag: f991ffb74a1a1ab86f14e751d7c4f4ba549785b3 | ||
| location: https://github.com/hackage-package-forks/trifecta | ||
|
|
||
| source-repository-package | ||
| type: git | ||
| tag: f8314fe8313702b07102a9f8330ad91630d1b124 | ||
| location: https://github.com/kadena-io/pact-json | ||
|
|
||
| -- Required for GHC-9.6 | ||
|
|
||
| allow-newer: *:template-haskell | ||
| allow-newer: *:base | ||
|
|
||
| -- Patch merged into master (upcoming verison 10.0). We are currently using 9.2 | ||
| source-repository-package | ||
| type: git | ||
| tag: b66e3a04c20f753213fe7e5115a95b3fe34109f9 | ||
| location: https://github.com/larskuhtz/sbv | ||
|
|
||
| -- Servant is notoriously forcing outdated upper bounds onto its users. | ||
| -- It is usually safe to just ignore those. | ||
| -- | ||
| allow-newer: servant-server:* | ||
| allow-newer: servant-client-core:* | ||
| allow-newer: servant-client:* | ||
| allow-newer: servant:* | ||
This file contains hidden or 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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.