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

Tests/Certificate.hs:17:72: error: Couldn't match expected type ‘B.ByteString’ with actual type ‘[asn1-types-0.3.2:Data.ASN1.Types.ASN1]’ #247

Closed
juhp opened this issue Jul 25, 2017 · 5 comments

Comments

@juhp
Copy link

juhp commented Jul 25, 2017

In the build for Stackage Nightly:

Preprocessing test suite 'test-tls' for tls-1.3.11...
[1 of 7] Compiling PubKey           ( Tests/PubKey.hs, dist/build/test-tls/test-tls-tmp/PubKey.o )
[2 of 7] Compiling PipeChan         ( Tests/PipeChan.hs, dist/build/test-tls/test-tls-tmp/PipeChan.o )

Tests/PipeChan.hs:12:1: warning: [-Wunused-imports]
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[3 of 7] Compiling Ciphers          ( Tests/Ciphers.hs, dist/build/test-tls/test-tls-tmp/Ciphers.o )
[4 of 7] Compiling Certificate      ( Tests/Certificate.hs, dist/build/test-tls/test-tls-tmp/Certificate.o )

Tests/Certificate.hs:17:72: error:
    • Couldn't match expected type ‘B.ByteString’
                  with actual type ‘[asn1-types-0.3.2:Data.ASN1.Types.ASN1]’
    • In the third argument of ‘ExtensionRaw’, namely ‘(extEncode ext)’
      In the expression:
        ExtensionRaw (extOID ext) critical (extEncode ext)
      In an equation for ‘testExtensionEncode’:
          testExtensionEncode critical ext
            = ExtensionRaw (extOID ext) critical (extEncode ext)

Not sure why this started happening.

juhp added a commit to commercialhaskell/stackage that referenced this issue Jul 25, 2017
@juhp
Copy link
Author

juhp commented Jul 25, 2017

This also breaks building the benchmark suit

juhp added a commit to commercialhaskell/stackage that referenced this issue Jul 25, 2017
@kazu-yamamoto
Copy link
Collaborator

This should be fixed by #246.

@ocheron ocheron mentioned this issue Jul 28, 2017
@clinty
Copy link

clinty commented Oct 1, 2017

Relevant to https://bugs.debian.org/877299

@bergmark
Copy link
Contributor

I think this can be closed now, benchmarks passed in the nightly build

@ocheron
Copy link
Contributor

ocheron commented Nov 24, 2017

Yes this was fixed in tls-1.4.0.

@ocheron ocheron closed this as completed Nov 24, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants