Commit Graph

842 Commits

Author SHA1 Message Date
Jonathan Daugherty
a0a32ec5fa Depend on semigroups for older GHCs (fixes #185) 2020-03-27 09:12:48 -07:00
Jonathan Daugherty
92590dead1 Bump version, update changelog 2020-03-09 15:37:46 -07:00
Jonathan Daugherty
ab10b97e31 Graphics.Vty.UnicodeWidthTable.Install: use withMVar to avoid boilerplate 2020-03-09 13:49:11 -07:00
Jonathan Daugherty
0d2226cb1a installUnicodeWidthTable: use throwIO, not throw 2020-03-09 13:45:05 -07:00
Jonathan Daugherty
9a9aeb65ea Bump version, update changelog 2020-03-09 13:40:14 -07:00
Jonathan Daugherty
c97c03718d Merge branch 'master' into feature/unicode-tables 2020-03-09 13:31:26 -07:00
Jonathan Daugherty
01e358b05f Revert "Travis: disable shared libraries in test build to address test linking failures"
This reverts commit 7255d692fa.
2020-03-09 12:54:57 -07:00
Jonathan Daugherty
7255d692fa Travis: disable shared libraries in test build to address test linking failures
This change is an attempt to address failures like the one at

https://travis-ci.org/jtdaugherty/vty/jobs/660259959

that give rise to the "Prelude.read: no parse" errors. Although that may
not seem like the error one would expect, see these resources for
details on why I think this is the "fix" for this problem:

* https://stackoverflow.com/questions/39310043/getting-prelude-read-no-parse-error-when-using-detailed-0-9-tests-with-cabal
* https://github.com/haskell/cabal/pull/3527
2020-03-09 10:50:19 -07:00
Jonathan Daugherty
84e391f56a UnicodeWidthTable.Install: clean up lock use 2020-03-09 10:24:57 -07:00
Jonathan Daugherty
5772d6aa57 UnicodeWidthTable.Install: make functions thread-safe with a global MVar 2020-03-09 10:20:28 -07:00
Jonathan Daugherty
a13f8fcb70 installUnicodeWidthTable: use custom exception type rather than calling "error" 2020-03-09 10:10:41 -07:00
Jonathan Daugherty
eabe52ba23 CHANGELOG: reformat 2020-03-06 11:04:46 -08:00
Jonathan Daugherty
18abb95ff4 BuildWidthTable: output nit 2020-03-06 10:20:48 -08:00
Jonathan Daugherty
261284cba7 BuildWidthTable: nits 2020-03-06 10:08:13 -08:00
Jonathan Daugherty
107be32423 BuildWidthTable: wait until the table is built before we create the output path 2020-03-06 09:35:33 -08:00
Jonathan Daugherty
b5b980c9e8 BuildWidthTable: cleanup 2020-03-06 09:34:55 -08:00
Jonathan Daugherty
63746c65e7 BuildWidthTable: add command-line flag to control which configuration file is updated 2020-03-06 09:33:57 -08:00
Jonathan Daugherty
c204e6dd21 BuildWidthTable: add command-line flag to update Vty config to use new map 2020-03-06 09:29:12 -08:00
Jonathan Daugherty
da8222347f Graphics.Vty.Config: add addConfigWidthMap 2020-03-06 09:29:07 -08:00
Jonathan Daugherty
d8cdb981e1 BuildWidthTable: create Vty configuration parent directories if necessary 2020-03-06 09:18:54 -08:00
Jonathan Daugherty
8c24083402 buildUnicodeWidthTable: docs update 2020-03-05 14:47:56 -08:00
Jonathan Daugherty
eb1983d22d UnicodeWidthTable.Query: make bound configurable, make command-line tool customize it 2020-03-05 14:45:41 -08:00
Jonathan Daugherty
aebf480d1d buildUnicodeWidthTable: clarify exception handling 2020-03-05 14:38:40 -08:00
Jonathan Daugherty
2a76f765f4 UnicodeWidthTable.IO: expose bytestring parser 2020-03-05 14:37:46 -08:00
Jonathan Daugherty
69dfa280e9 cabal: remove ForeignFunctionInterface from default-extensions 2020-03-05 14:35:44 -08:00
Jonathan Daugherty
4e21a740e8 installUnicodeWidthTable: add a more obvious "do not use" comment 2020-03-05 14:33:20 -08:00
Jonathan Daugherty
5327c94b12 Graphics.Text.Width: add module docs 2020-03-05 14:31:38 -08:00
Jonathan Daugherty
3d8dbf6ffd UnicodeWidthTable.Query: significantly raise testing upper bound 2020-03-05 14:27:41 -08:00
Jonathan Daugherty
4401f55526 buildUnicodeWidthTable: clarify usage intention 2020-03-05 14:21:16 -08:00
Jonathan Daugherty
2dbecaa9fe UnicodeWidthTable.Types: update docs 2020-03-05 14:21:01 -08:00
Jonathan Daugherty
beef71e7b7 Table parsing: remove redundant explicit types in favor of explicit reader functions 2020-03-05 14:20:33 -08:00
Jonathan Daugherty
b54772ac1d Migrate mkVty docs on table loading to Config 2020-03-05 14:20:14 -08:00
Jonathan Daugherty
e8e3fa3ba8 vty_deallocate_custom_table: also reset size 2020-03-05 14:19:53 -08:00
Jonathan Daugherty
0de76e531e vty_custom_table_ready: simplify 2020-03-05 14:19:42 -08:00
Jonathan Daugherty
b988b6894e vty_set_custom_table_range: avoid overflow in test 2020-03-05 14:19:28 -08:00
Jonathan Daugherty
24b9c8c0f5 vty_init_custom_table: default to 1 for widths of unknown code points 2020-03-05 14:19:00 -08:00
Jonathan Daugherty
a2d9c0a165 vty_mk_wcwidth: return -1 on failure 2020-03-05 14:18:40 -08:00
Jonathan Daugherty
1dc1239b39 vty_mk_wcwidth: simplify check 2020-03-05 14:18:30 -08:00
Jonathan Daugherty
ee91cb6245 builtin_wcwidth: make static 2020-03-05 14:18:02 -08:00
Jonathan Daugherty
132d5b327c Whitespace 2020-03-05 13:06:23 -08:00
Jonathan Daugherty
3f04a3f3a2 Whitespace 2020-03-05 13:03:42 -08:00
Jonathan Daugherty
2732b1be08 mk_wcwidth.c: docs nit 2020-03-05 11:09:21 -08:00
Jonathan Daugherty
3cb9cfc6d8 mk_wcwidth.c: docs nit 2020-03-05 11:08:51 -08:00
Jonathan Daugherty
d8b33ab53e mk_wcwidth.c: docs nit 2020-03-05 11:08:36 -08:00
Jonathan Daugherty
904a5b1040 mk_wcwidth.c: nit 2020-03-05 11:07:08 -08:00
Jonathan Daugherty
a247079058 mk_wcwidth.c: nit 2020-03-05 11:06:01 -08:00
Jonathan Daugherty
5435e8f8b3 mkRanges: caveat 2020-03-05 10:20:35 -08:00
Jonathan Daugherty
5ed59bb70d Graphics.Vty.UnicodeWidthTable.Query: document mkRanges 2020-03-05 10:19:29 -08:00
Jonathan Daugherty
d0645568ef README: edits 2020-03-05 09:48:41 -08:00
Jonathan Daugherty
ec81fc9c36 README: more width table content 2020-03-05 09:47:34 -08:00