joelburget / react-haskell

React bindings for Haskell
MIT License
351 stars 26 forks source link

Failed to compile #24

Open obcan opened 9 years ago

obcan commented 9 years ago

$cabal install ./react-haskell Resolving dependencies... Configuring react-haskell-2.0.1... Building react-haskell-2.0.1... Failed to install react-haskell-2.0.1 Build log ( /home/mule/.cabal/logs/react-haskell-2.0.1.log ): Configuring react-haskell-2.0.1... Building react-haskell-2.0.1... Preprocessing library react-haskell-2.0.1... [14 of 15] Compiling React.Events ( src/React/Events.hs, dist/build/React/Events.o )

src/React/Events.hs:197:31: No instance for (Eq JSString) arising from the literal ‘"Enter"’ In the pattern: "Enter" In the pattern: KeyboardEvent {key = "Enter"} In an equation for ‘handler’: handler (KeyboardEvent {key = "Enter"}) = Just s cabal: Error: some packages failed to install: react-haskell-2.0.1 failed during the building phase. The exception was: ExitFailure 1

Ghc version: 7.10.2

Cabal version: 1.22.6.0

Installed versions of packeges which react-haskell depends:

Maybe this is the report from Cabal hell? I am trying different versions and the result is the same.

emmanueltouzery commented 9 years ago

I also had a problem building with no instance of eq jsstring a while back, then gave up.

johncant commented 9 years ago

I did some hacking on this repo nearly a year ago and this error rings a bell. There's a good chance you'll need to just fix it yourself. Fortunately you're barely even in the first circle of cabal hell, because there's only one package left to install, and it's (only slightly) broken rather than the dependency structure. Good luck!