haskell-suite / haskell-names

Haskell suite library for name resolution
52 stars 17 forks source link

numerous BadInterface errors due to misplaced(?) selectors #43

Closed ghost closed 11 years ago

ghost commented 11 years ago

On a clean setup with the patched Cabal

ζ: cabal --version           
cabal-install version 1.19.0
using version 1.19.0 of the Cabal library 
ζ: ghc-pkg list haskell-names
/var/lib/ghc/package.conf.d
/home/stijn/.ghc/x86_64-linux-7.6.3/package.conf.d
   haskell-names-0.3.1
ζ: hs-gen-iface --version    
haskell-names 0.2
Based on haskell-packages version 0.2.3.1

I'm trying to generate interfaces.

ζ: cabal install --haskell-suite -w hs-gen-iface transformers
Resolving dependencies...
Configuring transformers-0.3.0.0...
Building transformers-0.3.0.0...
Preprocessing library transformers-0.3.0.0...
hs-gen-iface: BadInterface "/home/stijn/.cabal/share/x86_64-linux-ghc-7.6.3/haskell-names-0.3.1/libraries/base-4.7.0.0/Control/Applicative.names" "mzero"
Failed to install transformers-0.3.0.0
cabal: Error: some packages failed to install:
transformers-0.3.0.0 failed during the building phase. The exception was:
ExitFailure 1

I've found the same problem when using haskell-names in my own project. I've tracked the mzero down to the instance FromJSON name => FromJSON (SymTypeInfo name), where entity turns out to be "selector".

UnkindPartition commented 11 years ago

Sorry about that — it seems I forgot to re-generate the package db distributed with the package. Will fix now.