haskell-tls / hs-certificate

Certificate and Key Reader/Writer in haskell
60 stars 57 forks source link

Build failure #64

Closed nikita-volkov closed 8 years ago

nikita-volkov commented 8 years ago
mojojojo@mojojojo-VirtualBox:~/src/indexer$ cabal install x509
Resolving dependencies...
Configuring x509-1.6.1...
Building x509-1.6.1...
Preprocessing library x509-1.6.1...
[ 1 of 13] Compiling Data.X509.OID    ( Data/X509/OID.hs, dist/build/Data/X509/OID.o )

Data/X509/OID.hs:15:1: Warning:
    The import of ‘Control.Applicative’ is redundant
      except perhaps to import instances from ‘Control.Applicative’
    To import instances alone, use: import Control.Applicative()
[ 2 of 13] Compiling Data.X509.Internal ( Data/X509/Internal.hs, dist/build/Data/X509/Internal.o )
[ 3 of 13] Compiling Data.X509.DistinguishedName ( Data/X509/DistinguishedName.hs, dist/build/Data/X509/DistinguishedName.o )

Data/X509/DistinguishedName.hs:77:37:
    No instance for (Control.Monad.Error.Class.MonadError
                       [Char] ParseASN1)
      arising from a use of ‘throwError’
    In the expression:
      throwError ("expecting [OID,String] got " ++ show s)
    In a case alternative:
        _ -> throwError ("expecting [OID,String] got " ++ show s)
    In a stmt of a 'do' block:
      case s of {
        [OID oid, ASN1String cs] -> return (oid, cs)
        _ -> throwError ("expecting [OID,String] got " ++ show s) }
Failed to install x509-1.6.1
cabal: Error: some packages failed to install:
x509-1.6.1 failed during the building phase. The exception was:
ExitFailure 1
nikita-volkov commented 8 years ago

I've managed to work around this by explicitly restricting the "asn1-parse" dependency:

cabal install x509 --constraint "asn1-parse<0.9.2"

So the issue is somewhere there.

snoyberg commented 8 years ago

Just hit this with Stackage too.

cheecheeo commented 8 years ago

--constraint "asn1-parse<0.9.2" works for me as well, thanks @nikita-volkov

vincenthz commented 8 years ago

it should be fixed now. sorry I was going through a backlog of other features to get it fixed.