Skip to content

Instantly share code, notes, and snippets.

@bennofs
Created August 21, 2014 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bennofs/2311a8dc7e728919c10a to your computer and use it in GitHub Desktop.
Save bennofs/2311a8dc7e728919c10a to your computer and use it in GitHub Desktop.
cabal repl always builds library
name: foo
version: 0
build-type: Simple
build-depends: base
exposed-modules: Foo
module Foo where
foo :: IO ()
foo = putStrLn "bar"
$ cabal clean
$ cabal repl -v2
./foo.cabal has been changed. Re-configuring with most recently used options.
If this fails, please run configure manually.
/run/current-system/sw/bin/ghc --numeric-version
looking for tool ghc-pkg near compiler in /run/current-system/sw/bin
found ghc-pkg in /run/current-system/sw/bin/ghc-pkg
/run/current-system/sw/bin/ghc-pkg --version
/run/current-system/sw/bin/ghc --supported-languages
/run/current-system/sw/bin/ghc --info
Reading available packages...
Choosing modular solver.
Resolving dependencies...
Configuring foo-0...
Dependency base ==4.7.0.1: using base-4.7.0.1
Using Cabal-1.20.0.2 compiled by ghc-7.8
Using compiler: ghc-7.8.3
Using install prefix: /home/.cabal
Binaries installed in: /home/.cabal/bin
Libraries installed in: /home/.cabal/lib/x86_64-linux-ghc-7.8.3/foo-0
Private binaries installed in: /home/.cabal/libexec
Data files installed in: /home/.cabal/share/x86_64-linux-ghc-7.8.3/foo-0
Documentation installed in:
/home/.cabal/share/doc/x86_64-linux-ghc-7.8.3/foo-0
Configuration files installed in: /home/.cabal/etc
Using alex version 3.1.3 found on system at: /home/.nix-profile/bin/alex
Using ar found on system at:
/nix/store/ngsbygsjzv0fbj1543306l0a48qqy1vs-binutils-2.23.1/bin/ar
No c2hs found
Using cpphs version 1.18.4 found on system at: /home/.nix-profile/bin/cpphs
No ffihugs found
Using gcc version 4.8.3 found on system at:
/nix/store/085j31s6pfdwn6xl1g0x3i4pjcn2wvwf-gcc-wrapper-4.8.3/bin/gcc
Using ghc version 7.8.3 found on system at: /run/current-system/sw/bin/ghc
Using ghc-pkg version 7.8.3 found on system at:
/run/current-system/sw/bin/ghc-pkg
No greencard found
Using haddock version 2.14.3 found on system at:
/run/current-system/sw/bin/haddock
Using happy version 1.19.3 found on system at: /home/.nix-profile/bin/happy
Using haskell-suite found on system at: haskell-suite-dummy-location
Using haskell-suite-pkg found on system at: haskell-suite-pkg-dummy-location
No hmake found
Using hpc version 0.67 found on system at: /run/current-system/sw/bin/hpc
Using hsc2hs version 0.67 found on system at:
/run/current-system/sw/bin/hsc2hs
Using hscolour version 1.20 found on system at:
/run/current-system/sw/bin/HsColour
No hugs found
Using jhc version 0.8.1 found on system at: /home/.nix-profile/bin/jhc
Using ld found on system at:
/nix/store/085j31s6pfdwn6xl1g0x3i4pjcn2wvwf-gcc-wrapper-4.8.3/bin/ld
No lhc found
No lhc-pkg found
No nhc98 found
No pkg-config found
Using strip found on system at: /home/.nix-profile/bin/strip
Using tar found on system at: /run/current-system/sw/bin/tar
No uhc found
creating dist/build
creating dist/build/autogen
Preprocessing library foo-0...
creating dist/build
/run/current-system/sw/bin/ghc --make -fbuilding-cabal-package -O -static -dynamic-too -dynosuf dyn_o -dynhisuf dyn_hi -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -package-name foo-0 -hide-all-packages -package-db dist/package.conf.inplace -package-id base-4.7.0.1-e4b74d27ad8c8987c63abc42a80e7335 -XHaskell98 Foo
[1 of 1] Compiling Foo ( Foo.hs, dist/build/Foo.o ) [flags changed]
/run/current-system/sw/bin/ghc --interactive -fbuilding-cabal-package -O0 -outputdir dist/build -odir dist/build -hidir dist/build -stubdir dist/build -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -package-name foo-0 -hide-all-packages -package-db dist/package.conf.inplace -package-id base-4.7.0.1-e4b74d27ad8c8987c63abc42a80e7335 -XHaskell98 Foo
GHCi, version 7.8.3: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
[1 of 1] Compiling Foo ( Foo.hs, interpreted )
Ok, modules loaded: Foo.
λ:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment