packages feed

ncurses 0.2.3 → 0.2.4

raw patch · 5 files changed

+31/−6 lines, 5 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

cbits/hsncurses-shim.c view
@@ -2,7 +2,12 @@ #define _XOPEN_SOURCE_EXTENDED #define NCURSES_NOMACROS #include <string.h>-#include <ncursesw/curses.h>++#ifdef HSNCURSES_NARROW_HEADER+#include <ncurses.h>+#else+#include <ncursesw/ncurses.h>+#endif  #if NCURSES_VERSION_PATCH < 20081122 int _nc_has_mouse();
lib/UI/NCurses.chs view
@@ -152,7 +152,12 @@ #define _XOPEN_SOURCE_EXTENDED #define NCURSES_NOMACROS #include <string.h>-#include <ncursesw/curses.h>++#ifdef HSNCURSES_NARROW_HEADER+#include <ncurses.h>+#else+#include <ncursesw/ncurses.h>+#endif  {# pointer *WINDOW as Window nocode #} {# pointer *cchar_t as CCharT newtype #}
lib/UI/NCurses/Enums.chs view
@@ -23,7 +23,12 @@ #define NCURSES_ENABLE_STDBOOL_H 0 #define _XOPEN_SOURCE_EXTENDED #define NCURSES_NOMACROS-#include <ncursesw/curses.h>++#ifdef HSNCURSES_NARROW_HEADER+#include <ncurses.h>+#else+#include <ncursesw/ncurses.h>+#endif  class Enum a where 	toEnum :: Integer -> a
lib/UI/NCurses/Panel.chs view
@@ -40,7 +40,11 @@ import           UI.NCurses (render) -- for haddock import           UI.NCurses.Types +#ifdef HSNCURSES_NARROW_HEADER+#include <panel.h>+#else #include <ncursesw/panel.h>+#endif  {# pointer *PANEL as Panel nocode #} {# pointer *WINDOW as Window nocode #}
ncurses.cabal view
@@ -1,5 +1,5 @@ name: ncurses-version: 0.2.3+version: 0.2.4 license: GPL-3 license-file: license.txt author: John Millikin <jmillikin@gmail.com>@@ -56,7 +56,7 @@ source-repository head   type: bazaar   location: https://john-millikin.com/branches/haskell-ncurses/0.2/-  tag: haskell-ncurses_0.2.3+  tag: haskell-ncurses_0.2.4  library   hs-source-dirs: lib@@ -73,7 +73,13 @@    -- Do not use pkg-config to find ncurses libraries, because the .pc files   -- are missing or broken in many installations.-  extra-libraries: panelw ncursesw+  if os(darwin)+    -- MacOS has a version of ncurses where the narrow- and wide-character+    -- builds have been merged into a single header/dylib.+    cc-options: -DHSNCURSES_NARROW_HEADER+    extra-libraries: panel ncurses+  else+    extra-libraries: panelw ncursesw    c-sources: cbits/hsncurses-shim.c