diff options
author | Peter Simons <simons@cryp.to> | 2018-05-23 12:23:16 +0200 |
---|---|---|
committer | Peter Simons <simons@cryp.to> | 2018-05-23 12:24:31 +0200 |
commit | 8f96324584095764d769210a722c6b0defc5ec0e (patch) | |
tree | f2f254e318ceba0a94e951f8e86c188d118de6fd /pkgs/development/haskell-modules/patches | |
parent | 31f76cde3e86c8cc2d67e3991988876b7535b0d7 (diff) | |
download | nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar.gz nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar.bz2 nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar.lz nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar.xz nixlib-8f96324584095764d769210a722c6b0defc5ec0e.tar.zst nixlib-8f96324584095764d769210a722c6b0defc5ec0e.zip |
haskell-lambdabot-core: apply patch from @int-e to fix GHC 8.4.x build
Diffstat (limited to 'pkgs/development/haskell-modules/patches')
-rw-r--r-- | pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patch | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patch b/pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patch new file mode 100644 index 000000000000..9b7b7cfb8f96 --- /dev/null +++ b/pkgs/development/haskell-modules/patches/lambdabot-core-ghc-8.4.x-fix.patch @@ -0,0 +1,15 @@ +index 60e134c..246d8ca 100644 +--- lambdabot-core/src/Lambdabot/Config.hs ++++ lambdabot-core/src/Lambdabot/Config.hs +@@ -29,9 +29,9 @@ import Data.Typeable + import Data.Generics (everywhere, mkT) + import Language.Haskell.TH + +-data Config t where Config :: (Typeable1 k, GCompare k) => !(k t) -> t -> (t -> t -> t) -> Config t ++data Config t where Config :: (Typeable k, GCompare k) => !(k t) -> t -> (t -> t -> t) -> Config t + +-cast1 :: (Typeable1 f, Typeable1 g) => f a -> Maybe (g a) ++cast1 :: (Typeable f, Typeable g) => f a -> Maybe (g a) + cast1 = fmap runIdentity . gcast1 . Identity + + instance GEq Config where |