Closed ysangkok closed 1 year ago
Gentle ping @maksbotan could we please get this merged?
@pwm It would be best if sol/doctest#382 was finished first, then we could test this in CI.
Hi, just letting you know that doctest has a release supporting 9.4 now
@maksbotan Doctest supports GHC 9.4 now, so I think this is ready for review.
As a Hackage Trustee, I have made the following revisions to openapi3-3.2.2
:
aeson
: >=1.4.2.0 && <1.6 || >=2.0.1.0 && <2.1
-> >=1.4.2.0 && <1.6 || >=2.0.1.0 && <2.2
base
: >=4.11.1.0 && <4.17
-> >=4.11.1.0 && <4.18
lens
: >=4.16.1 && <5.2
-> >=4.16.1 && <5.3
template
: >=2.13.0.0 && <2.19
-> >=2.13.0.0 && <2.20
vector
: >=0.12.0.1 && <0.13
-> >=0.12.0.1 && <0.14
Hi! Sorry for the lag!
I've incorporated @endgame's revision into master branch.
@ysangkok I've added 9.4 CI to this branch and doctests fail:
/__w/openapi3/openapi3/unpacked/openapi3-3.2.2/src/Data/OpenApi/Schema/Validation.hs:38: failure in expression `import Data.OpenApi'
expected:
but got:
^
<interactive>:1:1: error:
attempting to use module ‘main:Data.OpenApi’ (/__w/openapi3/openapi3/unpacked/openapi3-3.2.2/src/Data/OpenApi.hs) which is not loaded
/__w/openapi3/openapi3/unpacked/openapi3-3.2.2/src/Data/OpenApi/Internal/Schema/Validation.hs:63: failure in expression `import Data.OpenApi.Internal.Schema.Validation'
expected:
but got:
^
<interactive>:1:1: error:
attempting to use module ‘main:Data.OpenApi.Internal.Schema.Validation’ (/__w/openapi3/openapi3/unpacked/openapi3-3.2.2/src/Data/OpenApi/Internal/Schema/Validation.hs) which is not loaded
Can you look into this please?
@maksbotan I spent a couple of hours and reported sol/doctest#389 . I think the error in Data.OpenApi.Internal.Schema.Validation
is related to OverloadedLists. But I don't wanna spend more time on this, I think doctest
is super fragile and not worth the effort. Feel free to close this PR.
@ysangkok thanks for the discovery! I've replaced OverloadedLists
usage with explicit IOHM.fromList
, now tests pass on 9.4 🎉
Fixes
Tested using
The tests can't be run because doctest doesn't support GHC 9.4 yet.