Fixing the Checkbox Bug
Tom Sidney Kerckhove WTF, just FIX THE BUG checkboxesField :: Eq a => HandlerFor site (OptionList a) -> Field (HandlerFor site) [a] # Source Deprecated: This function seems to have a bug (label could not be found with byLabel algorithm) Creates an input with type="checkbox" for selecting multiple options. checkboxesField' :: Eq a => HandlerFor site (OptionList a) -> Field (HandlerFor site) [a] # Source Creates an input with type="checkbox" for selecting multiple options. Alex Vzorov They produce different HTML, so "fixing" the bug would indeed be a breaking change. Assuming somebody uses Haskell in production, of course.
A programming discussion screenshot shows a complaint demanding that a checkbox bug be fixed, followed by code where two nearly identical Haskell functions produce different HTML. The joke is that changing the behavior would break existing users, especially the unlikely scenario of someone running Haskell in production. EN: A programming discussion screenshot shows a complaint demanding that a checkbox bug be fixed, followed by code where two nearly identical Haskell functions produce different HTML. The joke is that changing the behavior would break existing users, especially the unlikely scenario of someone running Haskell in production.
programmer avatar / аватар программистаsocial media post / публикация в соцсетиcode editor screenshot / скриншот редактора кодаHaskell code / код на Haskellcheckbox / флажокHTML code / HTML-кодerror message / сообщение об ошибкеlaptop screen / экран ноутбукаblack background / чёрный фонwhite code panel / белая панель с кодом
- @ithueti / 16047 2025-05-29
- Template
- Twitter/X reply thread
- Type
- image
- Size
- 800×529 · 65.9 KiB
- Mood
- саркастичный
- Language
- en
- Added