Code Monkey home page Code Monkey logo

Comments (10)

hvr avatar hvr commented on August 17, 2024

that seems very strange to me; using the logical negation operator is quite common in CPP conditionals

from hashable.

tibbe avatar tibbe commented on August 17, 2024

That seems odd to me too. Can you tell GHC to dump the preprocessed output so we can see what it looks like?

from hashable.

wferi avatar wferi commented on August 17, 2024

Probably, but please tell me how to do that...

from hashable.

hvr avatar hvr commented on August 17, 2024

would

#if !(MIN_VERSION_bytestring(0,10,0))

have worked? if so, what's the contents of the cabal_macros.h file generated by cabal? (I'm asking, because very old Cabal had fragile macros causing this very kind of problem)

from hashable.

wferi avatar wferi commented on August 17, 2024

Yes, the parenthesized version actually works! I wonder why my previous tests blamed the negation...

from hashable.

tibbe avatar tibbe commented on August 17, 2024

from hashable.

wferi avatar wferi commented on August 17, 2024

From my cabal_macros.h:

/* package bytestring-0.9.1.5 */
#define MIN_VERSION_bytestring(major1,major2,minor) \
  (major1) <  0 || \
  (major1) == 0 && (major2) <  9 || \
  (major1) == 0 && (major2) == 9 && (minor) <= 1

Have to transport the kids now, see you later!

from hashable.

tibbe avatar tibbe commented on August 17, 2024

from hashable.

wferi avatar wferi commented on August 17, 2024

Yes, it's cabal 0.8 (Debian oldstable). Upgrading cabal is also problematic. Said workaround in hashable would help me, but other necessary packages also pose problems, so I may eventually give up this GHC 6.12 environment anyway... :(

from hashable.

hvr avatar hvr commented on August 17, 2024

@tibbe btw, if you don't want to workaround this, just set cabal-version >=1.10 in future releases' hashable.cabal (that's the Cabal version that went with GHC 7.0)

from hashable.

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.