Resolving dependencies... Configuring cereal-0.5.4.0... Configuring entropy-0.3.7... Building cereal-0.5.4.0... Building entropy-0.3.7... Installed entropy-0.3.7 Configuring mtl-2.2.1... Configuring transformers-compat-0.5.1.4... Installed cereal-0.5.4.0 Building mtl-2.2.1... Building transformers-compat-0.5.1.4... Installed transformers-compat-0.5.1.4 Configuring tagged-0.8.5... Building tagged-0.8.5... Installed mtl-2.2.1 Installed tagged-0.8.5 Configuring crypto-api-0.13.2... Building crypto-api-0.13.2... Installed crypto-api-0.13.2 Configuring monadcryptorandom-0.7.0... Building monadcryptorandom-0.7.0... Installed monadcryptorandom-0.7.0 Configuring randfile-0.1.0.0... Building randfile-0.1.0.0... Failed to install randfile-0.1.0.0 Build log ( /home/builder/.cabal/logs/randfile-0.1.0.0.log ): cabal: Entering directory '/tmp/cabal-tmp-15044/randfile-0.1.0.0' Configuring randfile-0.1.0.0... Building randfile-0.1.0.0... Preprocessing executable 'randfile' for randfile-0.1.0.0... [1 of 2] Compiling Stat ( Stat.hs, dist/build/randfile/randfile-tmp/Stat.o ) Stat.hs:8:1: warning: [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’ Stat.hs:9:1: warning: [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() [2 of 2] Compiling Main ( Main.hs, dist/build/randfile/randfile-tmp/Main.o ) Main.hs:68:25: error: • No instance for (Error GenError) arising from a use of ‘randFile’ • In the first argument of ‘runCRandT_’, namely ‘(randFile ".")’ In a stmt of a 'do' block: file <- runCRandT_ (randFile ".") g In the expression: do { g <- newGenIO :: IO SystemRandom; file <- runCRandT_ (randFile ".") g; case file of { Just f -> putStrLn $ makeRelative "." $ f Nothing -> do { ... } } } cabal: Leaving directory '/tmp/cabal-tmp-15044/randfile-0.1.0.0' cabal: Error: some packages failed to install: randfile-0.1.0.0 failed during the building phase. The exception was: ExitFailure 1