Skip to content

Commit 29f2f94

Browse files
committed
Style
1 parent 6e15280 commit 29f2f94

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

ff-qtah/FF/Qt/TaskWidget.hs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ new storage onTaskUpdated = do
8181
[ RowWidget $ qScrollArea textContent
8282
, StringLayout "Start:" start.parent
8383
, StringLayout "Deadline:" end.parent
84-
, RowLayout $ qHBoxLayout [Widget $ pure postpone, Stretch]
84+
, RowLayout $ qHBoxLayout [Widget $< postpone, Stretch]
8585
]
8686
-- end setup UI
8787

@@ -90,6 +90,9 @@ new storage onTaskUpdated = do
9090
connect_ postpone QAbstractButton.clickedSignal $ postponeSlot this
9191
pure this
9292

93+
($<) :: Applicative f => (f a -> b) -> a -> b
94+
f $< x = f $ pure x
95+
9396
postponeSlot :: TaskWidget -> Bool -> IO ()
9497
postponeSlot this _checked = do
9598
mNoteId <- readIORef this.noteId

0 commit comments

Comments
 (0)