joelburget / react-haskell

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

Cannot install from hackage #14

Closed maks83 closed 9 years ago

maks83 commented 9 years ago

Using hackage version of Haste

~/react-haskell/example/todomvc$ haste-inst install react-haskell Resolving dependencies... Configuring Cabal-1.22.0.0... Failed to install Cabal-1.22.0.0 Build log ( /home/maks/react-haskell/example/todomvc/.cabal-sandbox/logs/Cabal-1.22.0.0.log ): ^[[A
Installed text-1.2.0.4 Downloading hashable-1.2.3.1... Configuring hashable-1.2.3.1... Building hashable-1.2.3.1... Failed to install hashable-1.2.3.1 Build log ( /home/maks/react-haskell/example/todomvc/.cabal-sandbox/logs/hashable-1.2.3.1.log ): Configuring hashable-1.2.3.1... Building hashable-1.2.3.1... Preprocessing library hashable-1.2.3.1...

Data/Hashable/Class.hs:302:26: Constructor ‘J#’ should have 1 argument, but has been given 2 In the pattern: J# size# byteArray In an equation for ‘hashWithSalt’: hashWithSalt salt n@(J# size# byteArray) | n >= minInt && n <= maxInt = hashWithSalt salt (fromInteger n :: Int) | otherwise = let size = I# size# numBytes = 4 * abs size in hashByteArrayWithSalt byteArray 0 numBytes salt hashWithSalt size where minInt = fromIntegral (minBound :: Int) maxInt = fromIntegral (maxBound :: Int) In the instance declaration for ‘Hashable Integer’ cabal: Error: some packages failed to install: Cabal-1.22.0.0 failed during the configure step. The exception was: user error ('/usr/local/bin/hastec' exited with an error:

/tmp/Cabal-1.22.0.0-8153/Cabal-1.22.0.0/Distribution/Version.hs:103:13: No instance for (Data Version) arising from the first field of ‘ThisVersion’ (type ‘Version’) Possible fix: use a standalone 'deriving instance' declaration, so you can specify the instance context yourself When deriving the instance for (Data VersionRange) ) hashable-1.2.3.1 failed during the building phase. The exception was: ExitFailure 1 nats-1 depends on hashable-1.2.3.1 which failed to install. react-haskell-1.3.0.0 depends on hashable-1.2.3.1 which failed to install. semigroups-0.16.0.1 depends on hashable-1.2.3.1 which failed to install. unordered-containers-0.2.5.1 depends on hashable-1.2.3.1 which failed to install. void-0.7 depends on hashable-1.2.3.1 which failed to install.

maks83 commented 9 years ago

what version of Haste you use?

maks83 commented 9 years ago

Workaround to build Hashable under Haste - https://github.com/valderman/haste-compiler/issues/51

haste-inst install --flags="-integer-gmp" hashable