Resolving dependencies... Configuring cereal-0.5.4.0... Configuring codec-mbox-0.2.0.0... Building cereal-0.5.4.0... Building codec-mbox-0.2.0.0... Installed codec-mbox-0.2.0.0 Configuring entropy-0.3.7... Configuring mtl-2.2.1... Installed cereal-0.5.4.0 Building mtl-2.2.1... Building entropy-0.3.7... Configuring old-locale-1.0.0.7... Installed entropy-0.3.7 Building old-locale-1.0.0.7... Configuring text-1.2.2.1... Installed old-locale-1.0.0.7 Configuring transformers-compat-0.5.1.4... Installed mtl-2.2.1 Building text-1.2.2.1... Building transformers-compat-0.5.1.4... Installed transformers-compat-0.5.1.4 Configuring old-time-1.1.0.3... Building old-time-1.1.0.3... Installed old-time-1.1.0.3 Configuring fclabels-2.0.3.2... Building fclabels-2.0.3.2... Configuring tagged-0.8.5... Installed fclabels-2.0.3.2 Building tagged-0.8.5... Installed text-1.2.2.1 Configuring parsec-3.1.11... Building parsec-3.1.11... Installed tagged-0.8.5 Configuring crypto-api-0.13.2... Building crypto-api-0.13.2... Installed parsec-3.1.11 Configuring hsemail-1.7.7... Building hsemail-1.7.7... Installed crypto-api-0.13.2 Configuring pureMD5-2.1.3... Building pureMD5-2.1.3... Installed pureMD5-2.1.3 Installed hsemail-1.7.7 Configuring mbox-tools-0.2.0.4... Building mbox-tools-0.2.0.4... Failed to install mbox-tools-0.2.0.4 Build log ( /home/builder/.cabal/logs/mbox-tools-0.2.0.4.log ): cabal: Entering directory '/tmp/cabal-tmp-23608/mbox-tools-0.2.0.4' Configuring mbox-tools-0.2.0.4... Building mbox-tools-0.2.0.4... Preprocessing executable 'mbox-counting' for mbox-tools-0.2.0.4... [1 of 1] Compiling Main ( mbox-counting.hs, dist/build/mbox-counting/mbox-counting-tmp/Main.o ) Linking dist/build/mbox-counting/mbox-counting ... Preprocessing executable 'mbox-list' for mbox-tools-0.2.0.4... [1 of 5] Compiling EOL ( EOL.hs, dist/build/mbox-list/mbox-list-tmp/EOL.o ) [2 of 5] Compiling Email ( Email.hs, dist/build/mbox-list/mbox-list-tmp/Email.o ) Email.hs:78:36: error: Variable not in scope: catch :: IO (Maybe String) -> (IOError -> IO (Maybe a0)) -> IO (Maybe String) Email.hs:125:39: error: • Couldn't match type ‘(a1 -> f0 a1) -> Codec.Mbox.MboxMessage a1 -> f0 (Codec.Mbox.MboxMessage a1)’ with ‘Data.Label.Poly.Lens Data.Label.Point.Total (Codec.Mbox.MboxMessage B.ByteString -> Codec.Mbox.MboxMessage B.ByteString) (B.ByteString -> B.ByteString)’ Expected type: Codec.Mbox.MboxMessage B.ByteString :-> B.ByteString Actual type: (a1 -> f0 a1) -> Codec.Mbox.MboxMessage a1 -> f0 (Codec.Mbox.MboxMessage a1) • Probable cause: ‘mboxMsgBody’ is applied to too few arguments In the first argument of ‘get’, namely ‘mboxMsgBody’ In the second argument of ‘(.)’, namely ‘get mboxMsgBody’ In the first argument of ‘map’, namely ‘(readEmail . get mboxMsgBody)’ cabal: Leaving directory '/tmp/cabal-tmp-23608/mbox-tools-0.2.0.4' cabal: Error: some packages failed to install: mbox-tools-0.2.0.4 failed during the building phase. The exception was: ExitFailure 1