valderman / haste-compiler

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

Fail to install haste-compiler #429

Open ghost opened 2 years ago

ghost commented 2 years ago

cabal install haste-compiler fails in Haskell 8.10.7 (in ghcup) with the error:

[ 7 of 25] Compiling Data.JSTarget.PP ( src/Data/JSTarget/PP.hs, dist/build/hastec/hastec-tmp/Data/JSTarget/PP.o )

src/Data/JSTarget/PP.hs:188:10: error:
    Duplicate instance declarations:
      instance IsString Builder
        -- Defined at src/Data/JSTarget/PP.hs:188:10
      instance IsString Builder -- Defined in ‘Data.ByteString.Builder’
    |
188 | instance IsString Builder where
    |          ^^^^^^^^^^^^^^^^
cabal: Failed to build exe:haste-boot from haste-compiler-0.2.3. See the build
log above for details.
Failed to build exe:haste-copy-pkg from haste-compiler-0.2.3. See the build
log above for details.
Failed to build exe:hastec from haste-compiler-0.2.3. See the build log above
for details.