Skip to content

Commit d017322

Browse files
authored
Improve deprecation messages (#1902)
* Improve deprecation messages * Update ChangeLog.md
1 parent 337c36c commit d017322

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

yesod-form/ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# ChangeLog for yesod-form
22

3+
## Unreleased
4+
5+
* Improve deprecation messages for `radioField` and `checkboxesField` [#1902](https://github.com/yesodweb/yesod/pull/1902)
6+
37
## 1.7.9.1
48

59
* Set `base >= 4.11` for less CPP and imports [#1876](https://github.com/yesodweb/yesod/pull/1876)

yesod-form/Yesod/Form/Fields.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,8 @@ import Data.String (IsString)
124124

125125
import Data.Char (isHexDigit)
126126

127-
{-# DEPRECATED radioField "This function seems to have a bug (label could not be found with byLabel algorithm)" #-}
128-
{-# DEPRECATED checkboxesField "This function seems to have a bug (label could not be found with byLabel algorithm)" #-}
127+
{-# DEPRECATED radioField "This function seems to have a bug (label could not be found with byLabel algorithm). Use radioField' instead." #-}
128+
{-# DEPRECATED checkboxesField "This function seems to have a bug (label could not be found with byLabel algorithm). Use checkboxesField' instead." #-}
129129

130130
defaultFormMessage :: FormMessage -> Text
131131
defaultFormMessage = englishFormMessage

0 commit comments

Comments
 (0)