ncurses 0.2.8 → 0.2.9
raw patch · 5 files changed
+14/−4 lines, 5 files
Files
- cbits/hsncurses-shim.h +5/−0
- lib/UI/NCurses.chs +1/−1
- lib/UI/NCurses/Enums.chs +2/−0
- lib/UI/NCurses/Panel.chs +2/−0
- ncurses.cabal +4/−3
cbits/hsncurses-shim.h view
@@ -1,3 +1,6 @@+#ifndef HASKELL_NCURSES_SHIM_H+#define HASKELL_NCURSES_SHIM_H+ #include <wchar.h> #define NCURSES_ENABLE_STDBOOL_H 0@@ -13,3 +16,5 @@ int hsncurses_has_mouse(); int hsncurses_wget_wch(WINDOW *, wint_t *);++#endif
lib/UI/NCurses.chs view
@@ -148,7 +148,7 @@ import qualified UI.NCurses.Enums as E import UI.NCurses.Types -#include <string.h>+#include "cbits/mavericks-c2hs-workaround.h" -- Note: c2hs has a hard time with the ncurses macros, and will choke on -- waddwstr() if NCURSES_NOMACROS is not defined prior to including
lib/UI/NCurses/Enums.chs view
@@ -20,6 +20,8 @@ import Prelude (Integer, error, show, (++)) +#include "cbits/mavericks-c2hs-workaround.h"+ #define NCURSES_ENABLE_STDBOOL_H 0 #define _XOPEN_SOURCE_EXTENDED #define NCURSES_NOMACROS
lib/UI/NCurses/Panel.chs view
@@ -40,6 +40,8 @@ import UI.NCurses (render) -- for haddock import UI.NCurses.Types +#include "cbits/mavericks-c2hs-workaround.h"+ #ifdef HSNCURSES_NARROW_HEADER #include <panel.h> #else
ncurses.cabal view
@@ -1,5 +1,5 @@ name: ncurses-version: 0.2.8+version: 0.2.9 license: GPL-3 license-file: license.txt author: John Millikin <jmillikin@gmail.com>@@ -56,7 +56,7 @@ source-repository this type: git location: https://john-millikin.com/code/haskell-ncurses/- tag: haskell-ncurses_0.2.8+ tag: haskell-ncurses_0.2.9 -- Do not use default to using pkg-config to find ncurses libraries, because -- the .pc files are missing or broken in many installations.@@ -100,8 +100,9 @@ -- -- Explicitly linking against libpthread.so fixes a build problem on -- platforms where the linker doesn't automatically follow dependencies.- if os(darwin) || flag(force-narrow-library)+ if os(darwin) || os(freebsd) || flag(force-narrow-library) cc-options: -DHSNCURSES_NARROW_HEADER+ if os(darwin) || flag(force-narrow-library) extra-libraries: panel ncurses pthread else extra-libraries: panelw ncursesw pthread