Comments (10)
that seems very strange to me; using the logical negation operator is quite common in CPP conditionals
from hashable.
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.
Probably, but please tell me how to do that...
from hashable.
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.
Yes, the parenthesized version actually works! I wonder why my previous tests blamed the negation...
from hashable.
from hashable.
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.
from hashable.
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.
@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)
- Add instances for type(s) in Data.Array.Byte (base-4.17)
- Add instances for new types in `filepath`
- Support GHC 9.4 HOT 1
- Allow GHC-9.4? HOT 2
- Unable to compile on Mac M1 architecture HOT 2
- What's the deal with Fixed? HOT 1
- Hash unstable across executions HOT 6
- hashable doesn't compile in ghc 9.6.1-alpha3 HOT 1
- Hashable 1.4.2.0 fails to build on integer-simple GHC HOT 2
- better instance Hashable IntSet? HOT 5
- ( odd x && odd y) ==> hash (x,y) == hash (negate x, negate y ) HOT 10
- using Hashed inside a tuple produces collisions HOT 4
- Caching hash value sometimes leads to equal hashes for different inputs HOT 1
- Minor release 1.4.3.0 introduces semantic changes HOT 1
- Use fromThreadId HOT 1
- Allow containers-0.7 HOT 2
- GHC99 failed to build: perhaps need to add ‘os-string’ to the build-depends HOT 2
- hashable doesn't support filepath-1.5, ghc-9.10 will bump filepath to 1.5 HOT 3
- Could AES-NI instructions be used for better Int hashes? HOT 1
- Could AES-NI instructions be used for better Int hashes? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hashable.