Skip to content

Commit

Permalink
fix selectList documentation (#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
Deltaspace0 authored Jan 12, 2023
1 parent f9e7679 commit 915b68c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Monomer/Widgets/Containers/SelectList.hs
Original file line number Diff line number Diff line change
Expand Up @@ -228,8 +228,8 @@ selectList_ field items makeRow configs = newNode where
-- | Creates a select list using the given value and 'onChange' event handler.
selectListV
:: (WidgetModel s, WidgetEvent e, Traversable t, SelectListItem a)
=> a -- ^ The event to raise on change.
-> (Int -> a -> e) -- ^ The list of selectable items.
=> a -- ^ The current value.
-> (Int -> a -> e) -- ^ The event to raise on change.
-> t a -- ^ The list of selectable items.
-> SelectListMakeRow s e a -- ^ Function to create the list items.
-> WidgetNode s e -- ^ The created dropdown.
Expand All @@ -240,8 +240,8 @@ selectListV value handler items makeRow = newNode where
-- Accepts config.
selectListV_
:: (WidgetModel s, WidgetEvent e, Traversable t, SelectListItem a)
=> a -- ^ The event to raise on change.
-> (Int -> a -> e) -- ^ The list of selectable items.
=> a -- ^ The current value.
-> (Int -> a -> e) -- ^ The event to raise on change.
-> t a -- ^ The list of selectable items.
-> SelectListMakeRow s e a -- ^ Function to create the list items.
-> [SelectListCfg s e a] -- ^ The config options.
Expand Down

0 comments on commit 915b68c

Please sign in to comment.