From 6ec4d59381f725e43d90000ae06f18757454f895 Mon Sep 17 00:00:00 2001 From: Gleb Popov Date: Sat, 24 Apr 2021 14:30:05 +0300 Subject: [PATCH] games/hs-scroll: Fix build with recent ncurses. Reported by: pkg-fallout --- ...ch-ncurses-0.2.16_lib_UI_NCurses_Enums.chs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 games/hs-scroll/files/patch-ncurses-0.2.16_lib_UI_NCurses_Enums.chs diff --git a/games/hs-scroll/files/patch-ncurses-0.2.16_lib_UI_NCurses_Enums.chs b/games/hs-scroll/files/patch-ncurses-0.2.16_lib_UI_NCurses_Enums.chs new file mode 100644 index 000000000000..b7c40c960a47 --- /dev/null +++ b/games/hs-scroll/files/patch-ncurses-0.2.16_lib_UI_NCurses_Enums.chs @@ -0,0 +1,19 @@ +--- ncurses-0.2.16/lib/UI/NCurses/Enums.chs.orig 2016-08-29 01:09:37 UTC ++++ ncurses-0.2.16/lib/UI/NCurses/Enums.chs +@@ -41,7 +41,7 @@ class Enum a where + pred, succ :: a -> a + pred = error "ncurses Enum: pred" + succ = error "ncurses Enum: succ" +- ++ + enumFrom :: a -> [a] + enumFrom = error "ncurses Enum: enumFrom" + enumFromThen :: a -> a -> [a] +@@ -195,7 +195,6 @@ enum hsncurses_Key + , hsncurses_KEY_UNDO = KEY_UNDO + , hsncurses_KEY_MOUSE = KEY_MOUSE + , hsncurses_KEY_RESIZE = KEY_RESIZE +-, hsncurses_KEY_EVENT = KEY_EVENT + }; + #endc +