Skip to content

Commit f59efcb

Browse files
authored
Merge pull request #7 from commercialhaskell/ex-memory
Depend on `ram` (rather than `memory`)
2 parents 1c0ec53 + 428caf3 commit f59efcb

19 files changed

Lines changed: 52 additions & 18 deletions

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
os:
2323
- ubuntu-latest
2424
snapshot:
25-
- stack-ghc-8.6.5.yaml # The oldest GHC supported by Stack and package
25+
- stack-ghc-8.8.4.yaml # The oldest GHC supported by Stack and package
2626
- stack-ghc-9.10.3.yaml
2727
- stack-ghc-9.12.4.yaml
2828
- stack-ghc-9.14.1.yaml

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to the
77
[Haskell Package Versioning Policy](https://pvp.haskell.org/).
88

9+
## 0.2.0 - 2026-07-01
10+
11+
* Depend on package `ram` (rather than `memory`).
12+
913
## 0.1.0 - 2023-07-07
1014

1115
* Spin out module `Pantry.Internal.StaticBytes` from package `pantry-0.8.3`.

package.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
spec-version: 0.36.0
22

33
name: static-bytes
4-
version: 0.1.0
4+
version: 0.2.0
55
synopsis: A Haskell library providing types representing 8, 16, 32, 64 or 128
66
bytes of data.
77
description: Please see the README on GitHub at <https://github.com/commercialhaskell/static-bytes#readme>
@@ -17,10 +17,10 @@ extra-source-files:
1717
- CHANGELOG.md
1818

1919
dependencies:
20-
- base >= 4.12 && < 5
20+
- base >= 4.13 && < 5
2121
- bytestring
22-
- memory
2322
- primitive
23+
- ram
2424
- rio
2525
- vector
2626

src/Data/StaticBytes.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import Data.ByteArray ( ByteArrayAccess (..) )
2828
import qualified Data.ByteString as B
2929
import qualified Data.ByteString.Internal as B
3030
import qualified Data.Primitive.ByteArray as BA
31-
#if MIN_VERSION_GLASGOW_HASKELL(9,4,1,0)
31+
#if MIN_VERSION_GLASGOW_HASKELL(9,4,1,0) && !MIN_VERSION_rio(0,1,23)
3232
import Data.Type.Equality ( type (~) )
3333
#endif
3434
import qualified Data.Vector.Primitive as VP
@@ -70,7 +70,7 @@ data Bytes128 = Bytes128 !Bytes64 !Bytes64
7070
data StaticBytesException
7171
= NotEnoughBytes
7272
| TooManyBytes
73-
deriving (Eq, Show, Typeable)
73+
deriving (Eq, Show)
7474

7575
instance Exception StaticBytesException
7676

stack-ghc-8.10.7.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Snapshot specification for GHC 8.10.7
12
snapshot: lts-18.28 # GHC 8.10.7
3+
4+
packages:
5+
- ram-0.22.0@sha256:f6ce64a025929eb6ce42deeb80d072960a9ea2d83b9b9b28de668cc2b623127c,2814

stack-ghc-8.6.5.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

stack-ghc-8.8.4.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Snapshot specification for GHC 8.8.4
2+
snapshot: lts-16.31 # GHC 8.8.4
3+
4+
packages:
5+
- ram-0.22.0@sha256:f6ce64a025929eb6ce42deeb80d072960a9ea2d83b9b9b28de668cc2b623127c,2814

stack-ghc-9.0.2.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1+
# Snapshot specification for GHC 9.0.2
12
snapshot: lts-19.33 # GHC 9.0.2
3+
4+
packages:
5+
- ram-0.22.0@sha256:f6ce64a025929eb6ce42deeb80d072960a9ea2d83b9b9b28de668cc2b623127c,2814

stack-ghc-9.10.3.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
11
# Snapshot specification for GHC 9.10.3
22
snapshot: lts-24.46 # GHC 9.10.3
3+
4+
packages:
5+
- ram-0.22.0@sha256:f6ce64a025929eb6ce42deeb80d072960a9ea2d83b9b9b28de668cc2b623127c,2814

stack-ghc-9.12.4.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# Snapshot specification for GHC 9.12.4
2-
snapshot: nightly-2026-06-29 # GHC 9.12.4
2+
snapshot: nightly-2026-06-30 # GHC 9.12.4

0 commit comments

Comments
 (0)