mirror of
https://github.com/Drezil/dear-imgui.hs.git
synced 2025-07-17 10:13:13 +02:00
Add withXxx and withXxxOpen wrappers for begin/end pairs (#49)
Adds dependency on unliftio for monad-preserving brackets. Fixes #32
This commit is contained in:
committed by
GitHub
parent
b921a72960
commit
8723ac2625
@ -55,7 +55,7 @@ mainLoop w = do
|
||||
newFrame
|
||||
|
||||
-- Build the GUI
|
||||
bracket_ (begin "Hello, ImGui!") end do
|
||||
withWindowOpen "Hello, ImGui!" do
|
||||
-- Add a text widget
|
||||
text "Hello, ImGui!"
|
||||
|
||||
|
Reference in New Issue
Block a user