Skip to content

Commit

Permalink
Merge pull request #414 from tweag/update/2022053/ghc-and-tasty-hedgehog
Browse files Browse the repository at this point in the history
Upgrade GHC to 9.2
  • Loading branch information
aspiwack authored Jun 9, 2022
2 parents d49b30a + 19fdb72 commit ffc51c7
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 60 deletions.
3 changes: 2 additions & 1 deletion bench/Data/Mutable/HashMap.hs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{-# LANGUAGE BangPatterns #-}
{-# LANGUAGE DeriveAnyClass #-}
{-# LANGUAGE DeriveGeneric #-}
{-# LANGUAGE DerivingStrategies #-}
{-# LANGUAGE GADTs #-}
{-# LANGUAGE LambdaCase #-}
{-# LANGUAGE LinearTypes #-}
Expand Down Expand Up @@ -39,7 +40,7 @@ deriving instance Ord Key

deriving instance Generic Key

deriving instance NFData Key
deriving anyclass instance NFData Key

instance Hashable Key where
hash (Key x) =
Expand Down
6 changes: 3 additions & 3 deletions nix/sources.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
"homepage": "https://github.com/NixOS/nixpkgs",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b2737d4980a17cc2b7d600d7d0b32fd7333aca88",
"sha256": "012db5d6k0lajp4q37byhgamz3ry04av1dcpgf3ahm9kzjwsjcch",
"rev": "7beebb590d541ffa534aa34b0b163f81c3c72c2c",
"sha256": "0lb134206mdrsxa3id61bn8p1ylwagv1k19jx1a0x9ywkfp0mvp1",
"type": "tarball",
"url": "https://github.com/NixOS/nixpkgs/archive/b2737d4980a17cc2b7d600d7d0b32fd7333aca88.tar.gz",
"url": "https://github.com/NixOS/nixpkgs/archive/7beebb590d541ffa534aa34b0b163f81c3c72c2c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
}
}
8 changes: 3 additions & 5 deletions shell.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ system ? builtins.currentSystem, sources ? import ./nix/sources.nix, ghcVersion ? "902" }:
{ system ? builtins.currentSystem, sources ? import ./nix/sources.nix, ghcVersion ? "922" }:

let
selectHls = self: super: {
Expand All @@ -19,9 +19,6 @@ let
"
'';
};
brokenIn92 = if ghcVersion == "921" then [] else [
pkgs.haskell-language-server
];
in with pkgs;

mkShell {
Expand All @@ -35,5 +32,6 @@ mkShell {
stack-wrapped
nix
cabal-docspec
] ++ brokenIn92;
pkgs.haskell-language-server
];
}
4 changes: 2 additions & 2 deletions src/Control/Functor/Linear/Internal/Class.hs
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,12 @@ instance Monoid a => Monad ((,) a) where
go b1 (b2, y) = (b1 <> b2, y)

deriving via
Generically1 (Sum f g)
Generically1 (Sum (f :: Type -> Type) g)
instance
(Functor f, Functor g) => Functor (Sum f g)

deriving via
Generically1 (Compose f g)
Generically1 (Compose (f :: Type -> Type) (g :: Type -> Type))
instance
(Functor f, Functor g) => Functor (Compose f g)

Expand Down
5 changes: 3 additions & 2 deletions src/Data/Functor/Linear/Internal/Applicative.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ import Data.Monoid (Ap (..))
import Data.Monoid.Linear hiding (Product)
import Data.Unrestricted.Linear.Internal.Ur (Ur (..))
import GHC.TypeLits
import GHC.Types
import Generics.Linear
import Prelude.Linear.Generically
import Prelude.Linear.Internal
Expand Down Expand Up @@ -96,12 +97,12 @@ deriving via
Monoid a => Applicative ((,) a)

deriving via
Generically1 (Product f g)
Generically1 (Product (f :: Type -> Type) g)
instance
(Applicative f, Applicative g) => Applicative (Product f g)

deriving via
Generically1 (f :*: g)
Generically1 ((f :: Type -> Type) :*: g)
instance
(Applicative f, Applicative g) => Applicative (f :*: g)

Expand Down
8 changes: 1 addition & 7 deletions stack.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
resolver: nightly-2022-01-13
resolver: nightly-2022-04-28
packages:
- '.'
extra-deps:
- tasty-hedgehog-1.2.0.0
- ormolu-0.4.0.0
- Cabal-3.6.2.0@sha256:ae204c95edd633538c3e502eee8838dc41d8b13c8f333955a39ff9df7b6de9e8,12852
- ghc-lib-parser-9.2.1.20220109@sha256:5da80d84452a31b7d0dab46d849a9c3552897405048d466b766136d852d20cfe,12705
- linear-generics-0.2@sha256:c1db1fcb96333be867978abfbed71e99dfbdcafa07d7d9642a89405e6bc971b1,5818
45 changes: 5 additions & 40 deletions stack.yaml.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,45 +3,10 @@
# For more information, please see the documentation at:
# https://docs.haskellstack.org/en/stable/lock_files

packages:
- completed:
pantry-tree:
sha256: 31987ee70107c5c204137d6f75b401cf8ed5e57df1047ee17d9eb0d4a6f7bc24
size: 330
hackage: tasty-hedgehog-1.2.0.0@sha256:3deb98e9a9de9e27c25d02b7fe92ad5cf68d5163fdaaf35bca3923b3e671d46d,1803
original:
hackage: tasty-hedgehog-1.2.0.0
- completed:
pantry-tree:
sha256: 59c9524f7e7a40b5be044fc805a6b9d6de898dfc4d156767b2429c06e1fba724
size: 84091
hackage: ormolu-0.4.0.0@sha256:cd5d2aee5fdeaee39fd0020b6c222578319cd79d5b09ece63d7c3346d363dcf2,4803
original:
hackage: ormolu-0.4.0.0
- completed:
pantry-tree:
sha256: 4a5049fc88e0f97447501b4daf6f2f21576db16b3e500812342b23c77a3570c9
size: 19757
hackage: Cabal-3.6.2.0@sha256:ae204c95edd633538c3e502eee8838dc41d8b13c8f333955a39ff9df7b6de9e8,12852
original:
hackage: Cabal-3.6.2.0@sha256:ae204c95edd633538c3e502eee8838dc41d8b13c8f333955a39ff9df7b6de9e8,12852
- completed:
pantry-tree:
sha256: adcd797fed395273b05a0e7fdf254cba76c6a9ceab573d78211447c6430ebb2a
size: 27578
hackage: ghc-lib-parser-9.2.1.20220109@sha256:5da80d84452a31b7d0dab46d849a9c3552897405048d466b766136d852d20cfe,12705
original:
hackage: ghc-lib-parser-9.2.1.20220109@sha256:5da80d84452a31b7d0dab46d849a9c3552897405048d466b766136d852d20cfe,12705
- completed:
pantry-tree:
sha256: 62c6d4bb56b01f240bbc8cf276ddbe7f65ffa3f73cc430772a26d8769c08066b
size: 2818
hackage: linear-generics-0.2@sha256:c1db1fcb96333be867978abfbed71e99dfbdcafa07d7d9642a89405e6bc971b1,5818
original:
hackage: linear-generics-0.2@sha256:c1db1fcb96333be867978abfbed71e99dfbdcafa07d7d9642a89405e6bc971b1,5818
packages: []
snapshots:
- completed:
sha256: df0d2c3ff3cd0424bf178914a068d76f3e48c89edfdcf9b015698836a106b507
size: 621061
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/1/13.yaml
original: nightly-2022-01-13
sha256: eb778a9c971802e22068265fb7b14d357c3eb7d76229402b9444a3db1a2bc153
size: 554661
url: https://raw.githubusercontent.com/commercialhaskell/stackage-snapshots/master/nightly/2022/4/28.yaml
original: nightly-2022-04-28

0 comments on commit ffc51c7

Please sign in to comment.