Resolving dependencies... Configuring network-2.6.3.1... Configuring mtl-2.2.1... Building mtl-2.2.1... Building network-2.6.3.1... Installed mtl-2.2.1 Configuring old-locale-1.0.0.7... Building old-locale-1.0.0.7... Configuring random-1.1... Installed old-locale-1.0.0.7 Building random-1.1... Configuring syb-0.6... Installed random-1.1 Building syb-0.6... Configuring utf8-string-1.0.1.1... Installed network-2.6.3.1 Building utf8-string-1.0.1.1... Configuring text-1.2.2.1... Installed syb-0.6 Building text-1.2.2.1... Installed utf8-string-1.0.1.1 Configuring old-time-1.1.0.3... Building old-time-1.1.0.3... Installed old-time-1.1.0.3 Installed text-1.2.2.1 Configuring mime-0.4.0.2... Configuring parsec-3.1.11... Building mime-0.4.0.2... Building parsec-3.1.11... Installed mime-0.4.0.2 Installed parsec-3.1.11 Configuring json-0.9.1... Configuring network-uri-2.6.1.0... Building json-0.9.1... Building network-uri-2.6.1.0... Installed network-uri-2.6.1.0 Configuring HTTP-4000.3.4... Building HTTP-4000.3.4... Installed json-0.9.1 Installed HTTP-4000.3.4 Configuring hs-twitter-0.2.6... Building hs-twitter-0.2.6... Failed to install hs-twitter-0.2.6 Build log ( /home/builder/.cabal/logs/hs-twitter-0.2.6.log ): cabal: Entering directory '/tmp/cabal-tmp-21383/hs-twitter-0.2.6' Configuring hs-twitter-0.2.6... Building hs-twitter-0.2.6... Preprocessing library hs-twitter-0.2.6... [1 of 9] Compiling Web.Twitter.Types ( Web/Twitter/Types.hs, dist/build/Web/Twitter/Types.o ) [2 of 9] Compiling Web.Twitter.Types.Import ( Web/Twitter/Types/Import.hs, dist/build/Web/Twitter/Types/Import.o ) Web/Twitter/Types/Import.hs:16:10: error: • No instance for (Applicative JM) arising from the superclasses of an instance declaration • In the instance declaration for ‘Monad JM’ Web/Twitter/Types/Import.hs:202:10: error: • The constructor ‘JSRational’ should have 2 arguments, but has been given 1 • In the pattern: JSRational v In a case alternative: JSRational v -> return (UserID (show ((round v) :: Integer))) In the expression: case m of { JSRational v -> return (UserID (show ((round v) :: Integer))) _ -> return (UserID (showJSValue m "")) } cabal: Leaving directory '/tmp/cabal-tmp-21383/hs-twitter-0.2.6' cabal: Error: some packages failed to install: hs-twitter-0.2.6 failed during the building phase. The exception was: ExitFailure 1