Build #8 for Ketchup-0.4.2

[all reports]

Package Ketchup-0.4.2
Install BuildFailed
Docs NotTried
Tests NotTried
Time submitted 2016-12-11 13:17:51.481018 UTC
Compiler ghc-8.0.1.20161018
OS linux
Arch x86_64
Dependencies base-4.9.0.0, base64-bytestring-1.0.0.1, bytestring-0.10.8.1, directory-1.2.6.2, mime-types-0.1.0.7, network-2.4.2.3, text-1.2.2.1
Flags none

Code Coverage

No Code Coverage was submitted for this report.

Build log

[view raw]

Resolving dependencies...
Configuring base64-bytestring-1.0.0.1...
Configuring mtl-2.2.1...
Building mtl-2.2.1...
Building base64-bytestring-1.0.0.1...
Installed base64-bytestring-1.0.0.1
Configuring text-1.2.2.1...
Building text-1.2.2.1...
Installed mtl-2.2.1
Installed text-1.2.2.1
Configuring mime-types-0.1.0.7...
Configuring parsec-3.1.11...
Building mime-types-0.1.0.7...
Building parsec-3.1.11...
Installed mime-types-0.1.0.7
Installed parsec-3.1.11
Configuring network-2.4.2.3...
Building network-2.4.2.3...
Installed network-2.4.2.3
Configuring Ketchup-0.4.2...
Building Ketchup-0.4.2...
Failed to install Ketchup-0.4.2
Build log ( /home/builder/.cabal/logs/Ketchup-0.4.2.log ):
cabal: Entering directory '/tmp/cabal-tmp-30221/Ketchup-0.4.2'
Configuring Ketchup-0.4.2...
Building Ketchup-0.4.2...
Preprocessing library Ketchup-0.4.2...
[1 of 6] Compiling Ketchup.Utils    ( Ketchup/Utils.hs, dist/build/Ketchup/Utils.o )
[2 of 6] Compiling Ketchup.Httpd    ( Ketchup/Httpd.hs, dist/build/Ketchup/Httpd.o )

Ketchup/Httpd.hs:49:72: error:
    • Couldn't match expected type ‘B.ByteString’
                  with actual type ‘[B.ByteString]’
    • In the ‘body’ field of a record
      In the expression:
        HTTPRequest
          {method = met, uri = ur, httpver = ver, headers = heads,
           body = body}
      In an equation for ‘parseRequest’:
          parseRequest reqlines
            = HTTPRequest
                {method = met, uri = ur, httpver = ver, headers = heads,
                 body = body}
            where
                [met, ur, ver] = B.words $ head headers
                heads = map parseRequestLine $ tail headers
                (body, headers) = reqlines

Ketchup/Httpd.hs:51:37: error:
    • Couldn't match expected type ‘[B.ByteString]’
                  with actual type ‘B.ByteString’
    • In the first argument of ‘head’, namely ‘headers’
      In the second argument of ‘($)’, namely ‘head headers’
      In the expression: B.words $ head headers

Ketchup/Httpd.hs:52:43: error:
    • Couldn't match expected type ‘[B.ByteString]’
                  with actual type ‘B.ByteString’
    • In the first argument of ‘tail’, namely ‘headers’
      In the second argument of ‘($)’, namely ‘tail headers’
      In the expression: map parseRequestLine $ tail headers
cabal: Leaving directory '/tmp/cabal-tmp-30221/Ketchup-0.4.2'
cabal: Error: some packages failed to install:
Ketchup-0.4.2 failed during the building phase. The exception was:
ExitFailure 1

Test log

No test log was submitted for this report.