packages feed

isocline 1.0.4 → 1.0.5

raw patch · 3 files changed

+8/−4 lines, 3 filesPVP ok

version bump matches the API change (PVP)

API changes (from Hackage documentation)

Files

haskell/System/Console/Isocline.hs view
@@ -31,7 +31,7 @@ main  = do putStrLn \"Welcome\"
            `setHistory` \"history.txt\" 200
            input \<- `readline` \"myprompt\"     -- full prompt becomes \"myprompt> \"
-           putFmtLn (\"[gray]You wrote:[\/gray]\\n\" ++ input)
+           `putFmtLn` (\"[gray]You wrote:[\/gray]\\n\" ++ input)
 @
 
 Or using custom completions with an interactive loop:
isocline.cabal view
@@ -1,11 +1,11 @@-cabal-version: 1.12+cabal-version: 1.12
  -- This file has been generated from package.yaml by hpack version 0.34.4. -- -- see: https://github.com/sol/hpack  name:           isocline-version:        1.0.4+version:        1.0.5 synopsis:       A portable alternative to GNU Readline description:    ![logo](https://raw.githubusercontent.com/daanx/isocline/main/doc/isocline-inline.svg) A Haskell wrapper around the [Isocline C library](https://github.com/daanx/isocline#readme) which can provide an alternative to GNU Readline. (The Isocline library is included whole and there are no runtime dependencies).                 Please see the [readme](https://github.com/daanx/isocline/haskell#readme) on GitHub for more information.
src/stringbuf.c view
@@ -6,6 +6,9 @@ -----------------------------------------------------------------------------*/  // get `wcwidth` for the column width of unicode characters+// note: for now the OS provided one is unused as we see quite a bit of variation +// among platforms and including our own seems more reliable.+/*  #if defined(__linux__) || defined(__freebsd__) // use the system supplied one #if !defined(_XOPEN_SOURCE)@@ -13,10 +16,11 @@ #endif #include <wchar.h> #else+*/ // use our own (also on APPLE as that fails within vscode) #define  wcwidth(c)  mk_wcwidth(c) #include "wcwidth.c"-#endif+// #endif  #include <stdio.h> #include <string.h>