GithubHelp home page GithubHelp logo

Comments (4)

JonCoens avatar JonCoens commented on May 3, 2024

Does "cabal install Haxl" not work? Manually installing the dependencies ahead of time is a non-standard way to get the dependencies to line up.
I would also recommend trying to use stackage for package management.

from haxl.

xich avatar xich commented on May 3, 2024

@zinking What happens if you cabal configure instead of ./Setup configure? and with cabal install?

Our Setup.hs file is the bog standard one that cabal creates, so either something is weird about the installed versions you have, or there is some path issue and Cabal (the library) can't find the same packages that cabal (the executable) can.

from haxl.

zinking avatar zinking commented on May 3, 2024

:Haxl/ (master✗) $ cabal configure [7:40:59]
Resolving dependencies...
Configuring haxl-0.3.1.0...
:Haxl/ (master✗) $ cabal install [7:41:06]
Resolving dependencies...
Configuring haxl-0.3.1.0...
Building haxl-0.3.1.0...
Failed to install haxl-0.3.1.0
Build log ( /Users/awang/.cabal/logs/haxl-0.3.1.0.log ):
cabal: Entering directory '.'
Configuring haxl-0.3.1.0...
Building haxl-0.3.1.0...
Preprocessing library haxl-0.3.1.0...
[ 1 of 11] Compiling Haxl.Core.Util ( Haxl/Core/Util.hs, dist/build/Haxl/Core/Util.o )
[ 2 of 11] Compiling Haxl.Core.StateStore ( Haxl/Core/StateStore.hs, dist/build/Haxl/Core/StateStore.o )
[ 3 of 11] Compiling Haxl.Core.Show1 ( Haxl/Core/Show1.hs, dist/build/Haxl/Core/Show1.o )
[ 4 of 11] Compiling Haxl.Core.Types ( Haxl/Core/Types.hs, dist/build/Haxl/Core/Types.o )
[ 5 of 11] Compiling Haxl.Core.DataCache ( Haxl/Core/DataCache.hs, dist/build/Haxl/Core/DataCache.o )
[ 6 of 11] Compiling Haxl.Core.RequestStore ( Haxl/Core/RequestStore.hs, dist/build/Haxl/Core/RequestStore.o )
[ 7 of 11] Compiling Haxl.Core.Exception ( Haxl/Core/Exception.hs, dist/build/Haxl/Core/Exception.o )
[ 8 of 11] Compiling Haxl.Core.Monad ( Haxl/Core/Monad.hs, dist/build/Haxl/Core/Monad.o )
[ 9 of 11] Compiling Haxl.Core.Memo ( Haxl/Core/Memo.hs, dist/build/Haxl/Core/Memo.o )

Haxl/Core/Memo.hs:137:23: Not in scope: ‘<$>’

Haxl/Core/Memo.hs:146:23: Not in scope: ‘<$>’
cabal: Leaving directory '.'
cabal: Error: some packages failed to install:
haxl-0.3.1.0 failed during the building phase. The exception was:
ExitFailure 1

I am OSX maverix, The Glorious Glasgow Haskell Compilation System, version 7.8.3
and tried update cabal

from haxl.

xich avatar xich commented on May 3, 2024

I just pushed some commits that should fix the build for GHC 7.8.

Sorry about that, but we don't always notice when 7.8 build is broken. I added a Travis badge to surface the build status more.

As for why cabal configure succeeds and ./Setup.hs configure doesn't, that might be a question for the Cabal folks. I'm guessing there is a path issue.

from haxl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.