Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/haskell-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,9 @@ jobs:
strategy:
matrix:
include:
- compiler: ghc-9.10
- compiler: ghc-9.8
- compiler: ghc-9.6
- compiler: ghc-9.4
- compiler: ghc-9.2
fail-fast: false
steps:
- name: Set PATH and environment variables
Expand Down
15 changes: 5 additions & 10 deletions large-hashable.cabal
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
name: large-hashable
version: 0.1.2.0
version: 0.1.3.0
synopsis: Efficiently hash (large) Haskell values
description: Please see README.md
homepage: https://github.com/factisresearch/large-hashable
license: BSD3
license-file: LICENSE
author: Stefan Wehr, Lukas Epple
maintainer: Stefan Wehr
copyright: 2015 - 2017 factis research GmbH, 2018 - 2023 medilyse GmbH, 2024 - 2025 MEQO GmbH
copyright: 2015 - 2017 factis research GmbH, 2018 - 2023 medilyse GmbH,
2024 - 2026 MEQO GmbH
category: Web
build-type: Simple
cabal-version: 2.0
Expand All @@ -18,10 +19,9 @@ extra-source-files:
default.nix
stack.yaml
test/bigfile.txt
stack-ghc-9.2.yaml
stack-ghc-9.4.yaml
stack-ghc-9.6.yaml
stack-ghc-9.8.yaml
stack-ghc-9.10.yaml

library
hs-source-dirs: src
Expand All @@ -36,25 +36,20 @@ library
build-depends: aeson
, base >= 4.8 && < 5
, base16-bytestring
, bytes
, bytestring
, containers
, crypton
, memory
, scientific
, strict
, template-haskell
, text
, time
, transformers
, unordered-containers
, vector
, void
build-tool-depends: cpphs:cpphs
default-language: Haskell2010
ghc-options: -optc -O3 -W -fwarn-unused-imports -fwarn-unused-binds
-fwarn-unused-matches -fwarn-unused-do-bind -fwarn-wrong-do-bind
-fno-warn-name-shadowing
-fno-warn-name-shadowing -Wunused-packages
-fwarn-missing-signatures -O2

benchmark large-hashable-benchmark
Expand Down
9 changes: 3 additions & 6 deletions src/Data/LargeHashable/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import Data.Void (Void)
import Data.Word
import Foreign.C.Types
import Foreign.Ptr
import GHC.Float (castDoubleToWord64, castFloatToWord32)
import GHC.Generics
import qualified Data.Aeson as J
#if MIN_VERSION_aeson(2,0,0)
Expand Down Expand Up @@ -317,16 +318,12 @@ instance LargeHashable Integer where
updateHash = updateHashInteger
updateHashStable = updateHash

foreign import ccall doubleToWord64 :: Double -> Word64

instance LargeHashable Double where
updateHash = updateHash . doubleToWord64
updateHash = updateHash . castDoubleToWord64
updateHashStable = updateHash

foreign import ccall floatToWord32 :: Float -> Word32

instance LargeHashable Float where
updateHash = updateHash . floatToWord32
updateHash = updateHash . castFloatToWord32
updateHashStable = updateHash

{-# INLINE updateHashFixed #-}
Expand Down
2 changes: 1 addition & 1 deletion stack-ghc-9.4.yaml → stack-ghc-9.10.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
resolver: lts-21.25
resolver: lts-24.3
require-stack-version: ">= 1.0.0"

packages:
Expand Down
10 changes: 0 additions & 10 deletions stack-ghc-9.2.yaml

This file was deleted.

19 changes: 0 additions & 19 deletions stack-ghc-9.2.yaml.lock

This file was deleted.

12 changes: 0 additions & 12 deletions stack-ghc-9.4.yaml.lock

This file was deleted.

2 changes: 1 addition & 1 deletion stack.yaml
10 changes: 5 additions & 5 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# This file was autogenerated by Stack.
# You should not edit this file by hand.
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files
# https://docs.haskellstack.org/en/stable/topics/lock_files

packages: []
snapshots:
- completed:
sha256: edbd50d7e7c85c13ad5f5835ae2db92fab1e9cf05ecf85340e2622ec0a303df1
size: 720020
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/22/34.yaml
original: lts-22.34
sha256: aa97dce5253937e4aa56100a0a9dc1f79a554cf543ad7cfab0afe6ed42de2f31
size: 724941
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/lts/24/3.yaml
original: lts-24.3
Loading