haskell / criterion

A powerful but simple library for measuring the performance of Haskell code.
http://www.serpentine.com/criterion
BSD 2-Clause "Simplified" License
502 stars 86 forks source link

criterion-0.6.0.0 failing to build #8

Closed ocharles closed 12 years ago

ocharles commented 12 years ago
[10 of 12] Compiling Criterion.Report ( Criterion/Report.hs, dist/build/Criterion/Report.o )

Criterion/Report.hs:73:25:
    No instance for (MonadIO Criterion)
      arising from a use of `liftIO'
    Possible fix: add an instance declaration for (MonadIO Criterion)
    In the expression: liftIO
    In the expression:
        liftIO
      $ do { tpl <- loadTemplate
                      [".", templateDir] (fromLJ cfgTemplate cfg);
               L.writeFile name =<< formatReport reports tpl }
    In a case alternative:
        Last (Just name)
          -> liftIO
           $ do { tpl <- loadTemplate [".", ....] (fromLJ cfgTemplate cfg);
                    L.writeFile name =<< formatReport reports tpl }
cabal: Error: some packages failed to install:
criterion-0.6.0.0 failed during the building phase. The exception was:
ExitFailure 1

Here are my currently install packages:

% ghc-pkg list
/usr/lib/ghc-7.0.4/package.conf.d
   Cabal-1.10.2.0
   HTTP-4000.1.1
   HUnit-1.2.0.3
   MissingH-1.1.0.3
   X11-1.5.0.0
   X11-xft-0.3
   array-0.3.0.2
   base-4.3.1.0
   bin-package-db-0.0.0.0
   binary-0.5.0.2
   bytestring-0.9.1.10
   containers-0.4.0.0
   dataenc-0.14
   directory-1.1.0.0
   extensible-exceptions-0.1.1.2
   ffi-1.0
   filepath-1.2.0.0
   ghc-7.0.4
   ghc-binary-0.5.0.2
   ghc-paths-0.1.0.8
   ghc-prim-0.2.0.0
   haddock-2.9.2
   hashed-storage-0.4.13
   haskeline-0.6.4.0
   haskell2010-1.0.0.0
   haskell98-1.1.0.1
   hpc-0.5.0.6
   hslogger-1.1.4
   html-1.0.1.2
   integer-gmp-0.2.0.3
   mmap-0.4.1
   mtl-1.1.1.1
   network-2.2.1.7
   old-locale-1.0.0.2
   old-time-1.0.0.6
   parsec-2.1.0.1
   pretty-1.0.1.2
   process-1.0.1.5
   random-1.0.0.3
   regex-base-0.93.1
   regex-compat-0.92
   regex-posix-0.94.1
   rts-1.0
   stm-2.1.2.2
   syb-0.3.2
   template-haskell-2.5.0.0
   terminfo-0.3.1.3
   time-1.1.2.0
   time-1.2.0.3
   unix-2.4.2.0
   utf8-string-0.3.6
   xhtml-3000.2.0.1
   xmonad-0.9.2
   xmonad-contrib-0.9.2
   zlib-0.5.2.0
/home/ollie/.ghc/i386-linux-7.0.4/package.conf.d
   aeson-0.5.0.0
   asn1-data-0.6.1.2
   attoparsec-0.10.1.0
   attoparsec-conduit-0.0.1
   attoparsec-enumerator-0.3
   base-unicode-symbols-0.2.2.3
   base64-bytestring-0.1.1.0
   blaze-builder-0.3.0.2
   blaze-builder-conduit-0.0.1
   case-insensitive-0.4.0.1
   cereal-0.3.5.1
   certificate-1.0.1
   cmdargs-0.9.2
   conduit-0.1.1
   cprng-aes-0.2.3
   crypto-api-0.8
   crypto-pubkey-types-0.1.0
   cryptocipher-0.3.0
   cryptohash-0.7.4
   data-default-0.3.0
   deepseq-1.2.0.1
   dlist-0.5
   double-conversion-0.2.0.4
   entropy-0.2.1
   enumerator-0.4.18
   erf-2.0.0.0
   failure-0.2.0
   hashable-1.1.2.2
   hastache-0.2.4
   http-conduit-1.2.0
   http-types-0.6.8
   largeword-1.0.1
   lifted-base-0.1.0.2
   math-functions-0.1.1.0
   monad-control-0.3.1
   monad-par-0.1.0.3
   mwc-random-0.11.0.0
   network-2.3.0.8
   parsec-3.1.2
   primitive-0.4.1
   semigroups-0.8
   statistics-0.10.1.0
   tagged-0.2.3.1
   text-0.11.1.12
   text-format-0.3.0.7
   tls-0.8.5
   tls-extra-0.4.2
   transformers-0.2.2.0
   transformers-base-0.4.1
   unix-compat-0.3.0.1
   unordered-containers-0.1.4.6
   vector-0.9.1
   vector-algorithms-0.5.3
   zlib-bindings-0.0.2
   zlib-conduit-0.0.1

And my GHC information:

 % ghc -V 
The Glorious Glasgow Haskell Compilation System, version 7.0.4
ocharles commented 12 years ago

Urgh, sorry, I've just noticed that HEAD is further than 0.6.0.0. Building the latest and greatest criterion does work. Sorry for the noise!