Export to GitHub

agda - issue #1196

cabal repl doesn't work


Posted on Jun 14, 2014 by Massive Kangaroo

$ cabal --version cabal-install version 1.20.0.2 using version 1.20.0.1 of the Cabal library

$ cabal repl ... src/full/Agda/TypeChecking/Serialise.hs:8:16: Warning: -O conflicts with --interactive; -O ignored.

<no location info>: Failing due to -Werror.

It seems a Cabal issue (see https://github.com/haskell/cabal/issues/1946 ).

Comment #1

Posted on Jun 14, 2014 by Grumpy Panda

The problem seems to be that there's an {-# OPTIONS_GHC -O2 #-} pragma in Serialise.

Comment #2

Posted on Jun 14, 2014 by Massive Kangaroo

I will update the Cabal issue with this information.

Removing -Werror I could run cabal repl, but it uses almost 4 GB of memory.

Comment #3

Posted on Jun 15, 2014 by Massive Kangaroo

The issue is fixed using the following command:

$ cabal repl --ghc-options=-Wwarn

Status: Fixed

Labels:
Type-Defect BuildFailure