Package: cabal-install Version: 0.8.0-1 Severity: normal If I configure a package using its own Setup.hs script, everything is fine (regardless of whether I use Setup.hs or the cabal command for building), but if I configure a package using the cabal command, I start getting "Warning: Module `Prelude' is deprecated" warnings.
In the attached project:
a...@kukkaseppele:~/scratch/foobar$ cabal configure
Resolving dependencies...
Configuring foobar-0.0...
a...@kukkaseppele:~/scratch/foobar$ cabal build
Preprocessing executables for foobar-0.0...
Building foobar-0.0...
[1 of 1] Compiling Main ( foobar.hs,
dist/build/foobar/foobar-tmp/Main.o )
foobar.hs:1:0:
Warning: Module `Prelude' is deprecated:
You are using the old package `base' version 3.x.
Future GHC versions will not support base version 3.x. You
should update your code to use the new base version 4.x.
foobar.hs:3:0:
Warning: Definition but no type signature for `main'
Inferred type: main :: m ()
Linking dist/build/foobar/foobar ...
a...@kukkaseppele:~/scratch/foobar$ cabal clean
cleaning...
a...@kukkaseppele:~/scratch/foobar$ runghc Setup.hs configure
Configuring foobar-0.0...
a...@kukkaseppele:~/scratch/foobar$ cabal build
Preprocessing executables for foobar-0.0...
Building foobar-0.0...
[1 of 1] Compiling Main ( foobar.hs,
dist/build/foobar/foobar-tmp/Main.o )
foobar.hs:3:0:
Warning: Definition but no type signature for `main'
Inferred type: main :: m ()
Linking dist/build/foobar/foobar ...
-- System Information:
Debian Release: squeeze/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1,
'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.33-ibid-1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fi_FI.UTF-8, LC_CTYPE=fi_FI.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages cabal-install depends on:
ii libc6 2.10.2-6 Embedded GNU C Library: Shared lib
ii libffi5 3.0.9-1 Foreign Function Interface library
ii libgmp3c2 2:4.3.2+dfsg-1 Multiprecision arithmetic library
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
Versions of packages cabal-install recommends:
ii ghc6 6.12.1-12 GHC - the Glasgow Haskell Compilat
cabal-install suggests no packages.
-- no debconf information
foobar.tar.gz
Description: GNU Zip compressed data

