msgpack / msgpack-haskell

Haskell implementation of MessagePack / msgpack.org[Haskell]
http://hackage.haskell.org/package/msgpack
138 stars 80 forks source link

msgpack-1.0.0 fails to build #56

Closed igniting closed 5 years ago

igniting commented 9 years ago

I get this error:

Resolving dependencies...
Configuring msgpack-1.0.0...
Building msgpack-1.0.0...
Preprocessing library msgpack-1.0.0...
[1 of 5] Compiling Data.MessagePack.Put ( src/Data/MessagePack/Put.hs, dist/dist-sandbox-39e50ff7/build/Data/MessagePack/Put.o )
[2 of 5] Compiling Data.MessagePack.Get ( src/Data/MessagePack/Get.hs, dist/dist-sandbox-39e50ff7/build/Data/MessagePack/Get.o )
[3 of 5] Compiling Data.MessagePack.Assoc ( src/Data/MessagePack/Assoc.hs, dist/dist-sandbox-39e50ff7/build/Data/MessagePack/Assoc.o )
[4 of 5] Compiling Data.MessagePack.Object ( src/Data/MessagePack/Object.hs, dist/dist-sandbox-39e50ff7/build/Data/MessagePack/Object.o )

src/Data/MessagePack/Object.hs:237:35:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1, MessagePack a2)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:236:10-65
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2]’
    In the expression: ObjectArray [toObject a1, toObject a2]
    In an equation for ‘toObject’:
        toObject (a1, a2) = ObjectArray [toObject a1, toObject a2]

src/Data/MessagePack/Object.hs:238:27:
    Couldn't match type ‘GHC.Exts.Item (V.Vector Object)’ with ‘Object’
    Expected type: V.Vector Object -> [Object]
      Actual type: V.Vector Object -> [GHC.Exts.Item (V.Vector Object)]
    In the pattern: [a1, a2]
    In the pattern: ObjectArray [a1, a2]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2])
          = (,) <$> fromObject a1 <*> fromObject a2

src/Data/MessagePack/Object.hs:238:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1, MessagePack a2)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:236:10-65
    In the pattern: [a1, a2]
    In the pattern: ObjectArray [a1, a2]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2])
          = (,) <$> fromObject a1 <*> fromObject a2

src/Data/MessagePack/Object.hs:242:39:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1, MessagePack a2, MessagePack a3)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:241:10-85
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3]’
    In the expression:
      ObjectArray [toObject a1, toObject a2, toObject a3]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3)
          = ObjectArray [toObject a1, toObject a2, toObject a3]

src/Data/MessagePack/Object.hs:243:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1, MessagePack a2, MessagePack a3)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:241:10-85
    In the pattern: [a1, a2, a3]
    In the pattern: ObjectArray [a1, a2, a3]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3])
          = (,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3

src/Data/MessagePack/Object.hs:247:43:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:246:10-105
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4]’
    In the expression:
      ObjectArray [toObject a1, toObject a2, toObject a3, toObject a4]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:248:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:246:10-105
    In the pattern: [a1, a2, a3, a4]
    In the pattern: ObjectArray [a1, a2, a3, a4]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4])
          = (,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4

src/Data/MessagePack/Object.hs:252:47:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:251:10-125
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4, ....]’
    In the expression:
      ObjectArray
        [toObject a1, toObject a2, toObject a3, toObject a4, ....]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4, a5)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:253:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:251:10-125
    In the pattern: [a1, a2, a3, a4, a5]
    In the pattern: ObjectArray [a1, a2, a3, a4, a5]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4, a5])
          = (,,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4
            <*> fromObject a5

src/Data/MessagePack/Object.hs:257:51:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:256:10-145
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4, ....]’
    In the expression:
      ObjectArray
        [toObject a1, toObject a2, toObject a3, toObject a4, ....]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4, a5, a6)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:258:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:256:10-145
    In the pattern: [a1, a2, a3, a4, a5, a6]
    In the pattern: ObjectArray [a1, a2, a3, a4, a5, a6]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4, a5, a6])
          = (,,,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4
            <*> fromObject a5
            <*> fromObject a6

src/Data/MessagePack/Object.hs:262:55:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:261:10-165
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4, ....]’
    In the expression:
      ObjectArray
        [toObject a1, toObject a2, toObject a3, toObject a4, ....]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4, a5, a6, a7)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:263:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:261:10-165
    In the pattern: [a1, a2, a3, a4, a5, a6, a7]
    In the pattern: ObjectArray [a1, a2, a3, a4, a5, a6, a7]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4, a5, a6, a7])
          = (,,,,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4
            <*> fromObject a5
            <*> fromObject a6
            <*> fromObject a7

src/Data/MessagePack/Object.hs:267:59:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7,
                      MessagePack a8)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:266:10-185
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4, ....]’
    In the expression:
      ObjectArray
        [toObject a1, toObject a2, toObject a3, toObject a4, ....]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4, a5, a6, a7, a8)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:268:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7,
                      MessagePack a8)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:266:10-185
    In the pattern: [a1, a2, a3, a4, a5, a6, a7, a8]
    In the pattern: ObjectArray [a1, a2, a3, a4, a5, a6, a7, a8]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4, a5, a6, a7, a8])
          = (,,,,,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4
            <*> fromObject a5
            <*> fromObject a6
            <*> fromObject a7
            <*> fromObject a8

src/Data/MessagePack/Object.hs:272:63:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7,
                      MessagePack a8,
                      MessagePack a9)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:271:10-205
    In the first argument of ‘ObjectArray’, namely
      ‘[toObject a1, toObject a2, toObject a3, toObject a4, ....]’
    In the expression:
      ObjectArray
        [toObject a1, toObject a2, toObject a3, toObject a4, ....]
    In an equation for ‘toObject’:
        toObject (a1, a2, a3, a4, a5, a6, a7, a8, a9)
          = ObjectArray [toObject a1, toObject a2, toObject a3, ....]

src/Data/MessagePack/Object.hs:273:27:
    Could not deduce (GHC.Exts.IsList (V.Vector Object))
      arising from an overloaded list
    from the context (MessagePack a1,
                      MessagePack a2,
                      MessagePack a3,
                      MessagePack a4,
                      MessagePack a5,
                      MessagePack a6,
                      MessagePack a7,
                      MessagePack a8,
                      MessagePack a9)
      bound by the instance declaration
      at src/Data/MessagePack/Object.hs:271:10-205
    In the pattern: [a1, a2, a3, a4, a5, a6, a7, a8, a9]
    In the pattern: ObjectArray [a1, a2, a3, a4, a5, a6, a7, a8, a9]
    In an equation for ‘fromObject’:
        fromObject (ObjectArray [a1, a2, a3, a4, a5, a6, a7, a8, a9])
          = (,,,,,,,,) <$> fromObject a1 <*> fromObject a2 <*> fromObject a3
            <*> fromObject a4
            <*> fromObject a5
            <*> fromObject a6
            <*> fromObject a7
            <*> fromObject a8
            <*> fromObject a9
Failed to install msgpack-1.0.0
cabal: Error: some packages failed to install:
msgpack-1.0.0 failed during the building phase. The exception was:
ExitFailure 1

Output of cabal list --simple-output --installed:

Cabal 1.18.1.3
GLURaw 1.4.0.1
GLUT 2.5.1.1
HTTP 4000.2.10
HUnit 1.2.5.2
OpenGL 2.9.2.0
OpenGLRaw 1.5.0.0
QuickCheck 2.6
array 0.5.0.0
async 2.0.1.5
attoparsec 0.10.4.0
base 4.7.0.1
bin-package-db 0.0.0.0
binary 0.7.1.0
blaze-builder 0.4.0.1
bytestring 0.10.4.0
case-insensitive 1.1.0.3
containers 0.5.5.1
data-binary-ieee754 0.4.4
deepseq 1.3.0.2
directory 1.2.1.0
fgl 5.5.0.1
filepath 1.3.0.2
ghc 7.8.3
ghc-prim 0.3.1.0
hashable 1.2.2.0
hashable 1.2.3.2
haskeline 0.7.1.2
haskell-src 1.0.1.6
haskell2010 1.1.2.0
haskell98 2.0.0.3
hoopl 3.10.0.1
hpc 0.6.0.1
hscolour 1.20.3
html 1.0.1.2
integer-gmp 0.5.1.0
mtl 2.1.3.1
mtl 2.2.1
network 2.4.2.3
old-locale 1.0.0.6
old-time 1.1.0.2
parallel 3.2.0.4
parsec 3.1.5
pretty 1.1.1.1
primitive 0.5.2.1
process 1.2.0.0
random 1.0.1.1
regex-base 0.93.2
regex-compat 0.95.1
regex-posix 0.95.2
rts 1.0
split 0.2.2
stm 2.4.2
syb 0.4.1
template-haskell 2.9.0.0
terminfo 0.4.0.0
text 1.1.0.0
text 1.2.0.4
time 1.4.2
transformers 0.3.0.0
transformers 0.4.3.0
unix 2.7.0.1
unordered-containers 0.2.4.0
unordered-containers 0.2.5.1
vector 0.10.9.1
xhtml 3000.2.1
zlib 0.5.4.1
bumberbrod commented 9 years ago

I have the same

igniting commented 9 years ago

vector >=0.10.12.1 is required.

spinque commented 8 years ago

Why is this dependency not fixed after one year? Is the project still alive?

hvr commented 5 years ago

Fwiw, it's actually a missing lower bound at vector >=0.10.11

I've made the dependency specifications more accurate over at https://hackage.haskell.org/package/msgpack-1.0.0/revisions/ and now cabal's solver should be able to find only valid build-plans.