Comments (3)
I assume that you need the hash of a CI s
to be the hash of the case folded s
. So:
instance Hashable s => Hashable (CI s) where
hash = hash . foldedCase
Right?
from case-insensitive.
Yeah, looks good to me!
On Wed, Jul 13, 2011 at 5:51 AM, basvandijk
[email protected]
wrote:
I assume that you need the hash of a
CI s
to be the hash of the case foldeds
. So:instance Hashable s => Hashable (CI s) where
hash = hash . foldedCaseRight?
Reply to this email directly or view it on GitHub:
#1 (comment)
Gregory Collins [email protected]
from case-insensitive.
from case-insensitive.
Related Issues (13)
- Doesn't build with ghc-7.2.1-rc1 HOT 2
- NoImplicitPrelude breaks GHC 6.12.1 HOT 4
- Derive SYB's Data HOT 1
- Consider moving "original" to .Unsafe HOT 3
- Build failure with GHC 7.2.2
- The repo clones awkwardly on case-insensitive filesystems HOT 2
- Binary -instance
- CI ByteString is slow HOT 5
- Cannot compile test suite in LTS 8.x HOT 1
- documentation: provide some explanation of "case folding" HOT 4
- Some non-ascii unicode chars are not case-folded correctly. HOT 3
- RFC: Drop support for GHC < 8 ?
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 case-insensitive.