Skip to content

Instantly share code, notes, and snippets.

@fujimura
Created November 24, 2012 15:05
Show Gist options
  • Save fujimura/4140026 to your computer and use it in GitHub Desktop.
Save fujimura/4140026 to your computer and use it in GitHub Desktop.
dist
cabal-dev
*.o
*.hi
*.chi
*.chs.h
-- Initial bs.cabal generated by cabal init. For further documentation,
-- see http://haskell.org/cabal/users-guide/
name: bs
version: 0.1.0.0
-- synopsis:
-- description:
-- license:
license-file: LICENSE
-- author:
-- maintainer:
-- copyright:
-- category:
build-type: Simple
cabal-version: >=1.8
library
-- exposed-modules:
-- other-modules:
build-depends: base ==4.5.*
, bytestring
import Data.ByteString
main = print "foo"
$ ghc-mod check Main.hs
GHCi runtime linker: fatal error: I found a duplicate definition for symbol
_fps_count
whilst processing object file
/Users/fujimura/.cabal/lib/bytestring-0.10.0.1/ghc-7.4.2/HSbytestring-0.10.0.1.o
This could be caused by:
* Loading two different object files which export the same symbol
* Specifying the same object file twice on the GHCi command line
* An incorrect `package.conf' entry, causing some object to be
loaded twice.
GHCi cannot safely continue in this situation. Exiting now. Sorry.
import Distribution.Simple
main = defaultMain
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 7.4.2
$ cabal --version
cabal-install version 1.16.0.2
using version 1.16.0.3 of the Cabal library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment