[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

clientsession 0.7.2



yesod-core 0.9.1.1 requires clientsession 0.7.2, but I can't build
anything newer than 0.7.0 because of this:

Preprocessing library clientsession-0.7.2...
Preprocessing test suites for clientsession-0.7.2...
Building clientsession-0.7.2...
[1 of 1] Compiling Web.ClientSession ( src/Web/ClientSession.hs, dist-ghc/build/Web/ClientSession.o )

src/Web/ClientSession.hs:169:30:
    No instance for (Data.Serialize.Serialize SHA256)
      arising from a use of `encode'
    Possible fix:
      add an instance declaration for (Data.Serialize.Serialize SHA256)
    In the expression: encode auth
    In the first argument of `S.concat', namely
      `[iv, encode auth, encrypted]'
    In the second argument of `($)', namely
      `S.concat [iv, encode auth, encrypted]'

src/Web/ClientSession.hs:175:12:
    No instance for (Crypto.Classes.Hash c0 SHA256)
      arising from a use of `hmac''
    Possible fix:
      add an instance declaration for (Crypto.Classes.Hash c0 SHA256)
    In the expression: hmac' (hmacKey key) encrypted :: SHA256
    In an equation for `auth':
        auth = hmac' (hmacKey key) encrypted :: SHA256
    In an equation for `encrypt':
        encrypt key (IV iv) x
          = B.encode $ S.concat [iv, encode auth, encrypted]
          where
              toPad = 16 - S.length x `mod` 16
              pad = S.replicate toPad $ fromIntegral toPad
              y = pad `S.append` x
              encrypted = A.encryptCBC (aesKey key) iv y
              ....


Reply to: