valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.44k stars 111 forks source link

haste-compiler-0.4.3 fails to build #390

Closed bwesterb closed 8 years ago

bwesterb commented 8 years ago
[ 7 of 24] Compiling Data.JSTarget.PP ( src/Data/JSTarget/PP.hs, dist/build/hastec/hastec-tmp/Data/JSTarget/PP.o )

src/Data/JSTarget/PP.hs:197:10:
    Duplicate instance declarations:
      instance IsString Builder
        -- Defined at src/Data/JSTarget/PP.hs:197:10
      instance IsString Builder
        -- Defined in `bytestring-builder-0.10.8.1.0:Data.ByteString.Builder'
Failed to install haste-compiler-0.4.3
cabal: Error: some packages failed to install:
haste-compiler-0.4.3 failed during the building phase. The exception was:
ExitFailure 1

This Vagrantfile will reproduce the problem

Vagrant.configure("2") do |config|
  config.vm.box = "debian/contrib-jessie64"
  config.vm.provision "shell", inline: <<-SHELL
    apt-get update
    apt-get install -y ghc
    apt-get install -y cabal-install
    apt-get install -y libghc-bzlib-dev
    cabal update
    cabal install haste-compiler
  SHELL
end
valderman commented 8 years ago

0.4.3 is severely outdated by now and has a slew of other problems, so I'm afraid this is a WONTFIX. Only the latest major version (the 0.5 series) is officially supported at this point.

If you really need the 0.4 series, you could try 0.4.4.4, which should incorporate a fix for this.