Commit Graph

1967 Commits

Author SHA1 Message Date
Jonathan Daugherty
293ba9ceba Move EventM from Brick.Types to Brick.Types.EventM, stop exporting internals of EventM 2022-07-17 19:03:29 -07:00
Jonathan Daugherty
83015ff1ac Forms: update docs 2022-07-17 18:51:02 -07:00
Jonathan Daugherty
875c305ad4 handleEventLensed -> withLens (generalize API), add nestEventM 2022-07-17 16:50:54 -07:00
Jonathan Daugherty
d0ffb6fbf4 Extent, Result: make fields strict 2022-07-17 09:31:43 -07:00
Jonathan Daugherty
312b7f8391 Whitespace 2022-07-17 09:28:16 -07:00
Jonathan Daugherty
301015a930 EventState: make fields strict 2022-07-17 09:26:46 -07:00
Jonathan Daugherty
4297ca073e Stale import 2022-07-17 09:26:34 -07:00
Jonathan Daugherty
49797717ab Use strict state monad everywhere we use a state monad 2022-07-17 09:25:13 -07:00
Jonathan Daugherty
f2f8013d63 Types: re-export state monad functions as part of API 2022-07-16 23:17:45 -07:00
Jonathan Daugherty
a5b3240758 Hide state type variable in ViewportScroll to avoid unnecessary API change 2022-07-16 23:13:37 -07:00
Jonathan Daugherty
4ea1f65d86 Update demo programs for changes to EventM 2022-07-16 23:10:03 -07:00
Jonathan Daugherty
aa07f9eaee Finish most proof of concept internals updates for EventM changes 2022-07-16 23:09:51 -07:00
Jonathan Daugherty
74ba7b6c56 Add updateWithLens, finish FileBrowser updates 2022-07-16 13:28:47 -07:00
Jonathan Daugherty
5db48f2820 Initial refactor of EventM to be a state monad (also migrates to mtl) 2022-07-15 17:57:39 -07:00
Jonathan Daugherty
63a4083391 EventTrigger: Static -> ByKey 2022-07-10 13:59:27 -07:00
Jonathan Daugherty
456da00fa9 keyHandlersFromConfig: nit 2022-07-10 13:57:58 -07:00
Jonathan Daugherty
6466c4e99d keyHandlersFromConfig: cleanup 2022-07-10 13:56:41 -07:00
Jonathan Daugherty
6c1f357318 Whitespace 2022-07-10 13:56:29 -07:00
Jonathan Daugherty
3014e79304 Remove stale imports 2022-07-10 13:56:26 -07:00
Jonathan Daugherty
232fcc81b4 Keybindings: re-export Pretty module 2022-07-10 09:50:09 -07:00
Jonathan Daugherty
52a370fad8 Parse: move pretty-printing functions to Pretty 2022-07-10 09:50:02 -07:00
Jonathan Daugherty
04676115e6 Incorporate keybinding machinery from Matterhorn 2022-07-10 09:37:16 -07:00
Jonathan Daugherty
b23c40d82a Editor: mention mouse events in docs 2022-07-09 12:20:44 -07:00
Jonathan Daugherty
1c044013b2 Comment edit 2022-07-09 09:23:36 -07:00
Jonathan Daugherty
034ce2dfbf Bump version, update changelog 2022-07-09 09:23:10 -07:00
Jonathan Daugherty
beebfc7ba4 Changelog: remove merged entry 2022-07-09 09:22:34 -07:00
Jonathan Daugherty
40a39b92d1
Merge pull request #376 from TristanCacqueray/edit-cursor-pos
Add Brick.Widgets.Edit.getCursorPosition
2022-07-09 09:22:13 -07:00
Jonathan Daugherty
4749694d5a Bump version, update changelog 2022-07-09 08:44:05 -07:00
Jonathan Daugherty
c832aef14a Improve editor cursor placement with moveCursorClosest from text-zipper 0.12 2022-07-09 08:40:04 -07:00
Jonathan Daugherty
8eb41ca8c3 handleEditorEvent: handle mouse click events to place the cursor (adds Eq constraint to handleEditorEvent) 2022-07-09 08:30:42 -07:00
Jonathan Daugherty
65645be3d2 Edit: handle BrickEvents, not Events
This is a breaking API change that changes handleEditorEvent to take
BrickEvents instead of Events. This paves the way for handling Brick's
mouse events in the editor.
2022-07-09 08:23:32 -07:00
Jonathan Daugherty
d2b884586e Edit: let/where refactor 2022-07-09 08:07:28 -07:00
Jonathan Daugherty
2a99ee3fa0 Whitespace 2022-07-09 08:06:49 -07:00
Tristan Cacqueray
767438cd1d Add Brick.Widgets.Edit.getCursorPosition 2022-07-09 11:59:33 +00:00
Jonathan Daugherty
41387854ae Bump version, update changelog 2022-07-05 08:17:25 -07:00
Jonathan Daugherty
4c955ad907 Render.hs: catch all exceptions, not just VtyConfigurationError 2022-07-05 08:15:18 -07:00
Jonathan Daugherty
1bed2c8268 Implement a few linter suggestions 2022-07-04 21:11:12 -07:00
Jonathan Daugherty
ac7a8aeb71 Bump version, update changelog 2022-07-04 09:27:25 -07:00
Jonathan Daugherty
583ce85953 Add missing pragma 2022-07-04 09:21:55 -07:00
Jonathan Daugherty
e23c1ab285 Render.hs: add conditional import 2022-07-04 09:20:31 -07:00
Jonathan Daugherty
0a3a8f8012 Upgrade Vty and expected Show formatting of Picture in Render.hs 2022-07-04 09:14:23 -07:00
Jonathan Daugherty
62baeb66dd Render.hs: improve message on skip 2022-07-04 09:09:13 -07:00
Jonathan Daugherty
5fb650fd71 Render.hs: pass trivially on absence of terminal 2022-07-04 09:00:28 -07:00
Jonathan Daugherty
5993603b02 Render.hs test program: various enhancements 2022-07-04 08:53:35 -07:00
Jonathan Daugherty
fabc13c627 Render.hs: whitespace 2022-07-04 08:47:06 -07:00
Jonathan Daugherty
1901af0792 Render.hs: whitespace 2022-07-04 08:46:47 -07:00
Jonathan Daugherty
59da9b55e5 Update test render program to match renderWidget API change 2022-07-04 08:43:34 -07:00
Jonathan Daugherty
30a65fc7e0 renderWidget: add attribute map argument and update documentation 2022-07-04 08:41:00 -07:00
Jonathan Daugherty
f3ef855f76 renderWidget: whitespace 2022-07-04 08:32:12 -07:00
Jonathan Daugherty
835d875331
Merge pull request #374 from valyagolev/vg-render-widget
Add Brick.Main.renderWidget
2022-07-04 08:28:03 -07:00