git.iko.soy/typeable/nixpkgs
on master help sign in
haskell-lambdabot-core: apply patch from @int-e to fix GHC 8.4.x build
commit8f96324584095764d769210a722c6b0defc5ec0e authorPeter Simons <simons@cryp.to> dateWed 23 May 2018, 12:23 (9 years ago) parent31f76cd
2 files changed+17
pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix+2 pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patch+15
pkgs/development/haskell-modules/configuration-ghc-8.4.x.nix+2
@@ -448,4 +448,6 @@ self: super: {
448448 sha256 = "1bpsqq80h6nxm04wddgcgyzn0fjfsmhccmqb211jqswv5209znx8";
449449 });
450450
451+ lambdabot-core = appendPatch super.lambdabot-core ./patches/lambdabot-core-ghc-8.4.x-fix.patch;
452+
451453}
pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patchnew file+15
@@ -0,0 +1,15 @@
1+index 60e134c..246d8ca 100644
2+--- lambdabot-core/src/Lambdabot/Config.hs
3++++ lambdabot-core/src/Lambdabot/Config.hs
4+@@ -29,9 +29,9 @@ import Data.Typeable
5+ import Data.Generics (everywhere, mkT)
6+ import Language.Haskell.TH
7+
8+-data Config t where Config :: (Typeable1 k, GCompare k) => !(k t) -> t -> (t -> t -> t) -> Config t
9++data Config t where Config :: (Typeable k, GCompare k) => !(k t) -> t -> (t -> t -> t) -> Config t
10+
11+-cast1 :: (Typeable1 f, Typeable1 g) => f a -> Maybe (g a)
12++cast1 :: (Typeable f, Typeable g) => f a -> Maybe (g a)
13+ cast1 = fmap runIdentity . gcast1 . Identity
14+
15+ instance GEq Config where