-
-
Save leonbaum/9164940 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module A where | |
import B | |
data X = X Y deriving (Show) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module B where | |
data Y = Z deriving (Show) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This is the configuration file for the 'cabal' command line tool. | |
-- The available configuration options are listed below. | |
-- Some of them have default values listed. | |
-- Lines (like this one) beginning with '--' are comments. | |
-- Be careful with spaces and indentation because they are | |
-- used to indicate layout for nested sections. | |
remote-repo: hackage.haskell.org:http://hackage.haskell.org/packages/archive | |
remote-repo-cache: /home/me/.cabal/packages | |
-- local-repo: | |
-- logs-dir: | |
world-file: /home/me/.cabal/world | |
-- verbose: 1 | |
-- compiler: ghc | |
-- with-compiler: | |
-- with-hc-pkg: | |
-- scratchdir: | |
-- program-prefix: | |
-- program-suffix: | |
-- library-vanilla: True | |
-- library-profiling: False | |
-- shared: | |
-- executable-dynamic: False | |
-- executable-profiling: False | |
-- optimization: True | |
-- library-for-ghci: False | |
-- split-objs: False | |
-- executable-stripping: True | |
-- user-install: True | |
-- package-db: | |
-- flags: | |
-- extra-include-dirs: | |
-- extra-lib-dirs: | |
extra-prog-path: /home/me/.cabal/bin | |
-- tests: False | |
-- library-coverage: False | |
-- benchmarks: False | |
-- cabal-lib-version: | |
-- constraint: | |
-- preference: | |
-- solver: choose | |
-- documentation: False | |
-- doc-index-file: $datadir/doc/index.html | |
-- max-backjumps: 200 | |
-- reorder-goals: False | |
-- shadow-installed-packages: | |
-- reinstall: False | |
-- avoid-reinstalls: False | |
-- force-reinstalls: False | |
-- upgrade-dependencies: False | |
-- root-cmd: | |
-- symlink-bindir: | |
build-summary: /home/me/.cabal/logs/build.log | |
-- build-log: | |
remote-build-reporting: anonymous | |
-- one-shot: False | |
jobs: $ncpus | |
-- username: | |
-- password: | |
install-dirs user | |
-- prefix: /home/me/.cabal | |
-- bindir: $prefix/bin | |
-- libdir: $prefix/lib | |
-- libsubdir: $arch-$os-$compiler/$pkgid | |
-- libexecdir: $prefix/libexec | |
-- datadir: $prefix/share | |
-- datasubdir: $arch-$os-$compiler/$pkgid | |
-- docdir: $datadir/doc/$arch-$os-$compiler/$pkgid | |
-- htmldir: $docdir/html | |
-- haddockdir: $htmldir | |
-- sysconfdir: $prefix/etc | |
install-dirs global | |
-- prefix: /usr/local | |
-- bindir: $prefix/bin | |
-- libdir: $prefix/lib | |
-- libsubdir: $arch-$os-$compiler/$pkgid | |
-- libexecdir: $prefix/libexec | |
-- datadir: $prefix/share | |
-- datasubdir: $arch-$os-$compiler/$pkgid | |
-- docdir: $datadir/doc/$arch-$os-$compiler/$pkgid | |
-- htmldir: $docdir/html | |
-- haddockdir: $htmldir | |
-- sysconfdir: $prefix/etc | |
program-locations | |
-- alex-location: | |
-- ar-location: | |
-- c2hs-location: | |
-- cpphs-location: | |
-- ffihugs-location: | |
-- gcc-location: | |
-- ghc-location: | |
-- ghc-pkg-location: | |
-- greencard-location: | |
-- haddock-location: | |
-- happy-location: | |
-- hmake-location: | |
-- hpc-location: | |
-- hsc2hs-location: | |
-- hscolour-location: | |
-- hugs-location: | |
-- jhc-location: | |
-- ld-location: | |
-- lhc-location: | |
-- lhc-pkg-location: | |
-- nhc98-location: | |
-- pkg-config-location: | |
-- ranlib-location: | |
-- strip-location: | |
-- tar-location: | |
-- uhc-location: | |
program-default-options | |
-- alex-options: | |
-- ar-options: | |
-- c2hs-options: | |
-- cpphs-options: | |
-- ffihugs-options: | |
-- gcc-options: | |
-- ghc-options: | |
-- ghc-pkg-options: | |
-- greencard-options: | |
-- haddock-options: | |
-- happy-options: | |
-- hmake-options: | |
-- hpc-options: | |
-- hsc2hs-options: | |
-- hscolour-options: | |
-- hugs-options: | |
-- jhc-options: | |
-- ld-options: | |
-- lhc-options: | |
-- lhc-pkg-options: | |
-- nhc98-options: | |
-- pkg-config-options: | |
-- ranlib-options: | |
-- strip-options: | |
-- tar-options: | |
-- uhc-options: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cabal build | |
./test.cabal has been changed. Re-configuring with most recently used options. | |
If this fails, please run configure manually. | |
Resolving dependencies... | |
Configuring test-0.1.0.0... | |
Building test-0.1.0.0... | |
Preprocessing library test-0.1.0.0... | |
[1 of 2] Compiling B ( B.hs, dist/build/B.o ) | |
[2 of 2] Compiling A ( A.hs, dist/build/A.o ) | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: dist/build/A.dyn_o: wa\ | |
rning: relocation against `testzm0zi1zi0zi0_B_zdfShowY2_closure' in readonly section `.text'. | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: dist/build/A.dyn_o: re\ | |
location R_X86_64_PC32 against undefined symbol `testzm0zi1zi0zi0_B_zdfShowY2_closure' can not be use\ | |
d when making a shared object; recompile with -fPIC | |
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.2/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad\ | |
value | |
collect2: error: ld returned 1 exit status |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Initial test.cabal generated by cabal init. For further documentation, | |
-- see http://haskell.org/cabal/users-guide/ | |
name: test | |
version: 0.1.0.0 | |
-- synopsis: | |
-- description: | |
-- license: | |
-- author: | |
-- maintainer: | |
-- copyright: | |
-- category: | |
build-type: Simple | |
-- extra-source-files: | |
cabal-version: >=1.10 | |
library | |
exposed-modules: A | |
-- other-modules: | |
-- other-extensions: | |
build-depends: base >=4.7 && <4.8 | |
-- hs-source-dirs: | |
default-language: Haskell2010 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment