yesod-form

Form handling for Yesod, in the same style as formlets. See the forms chapter of the Yesod book.

This package provies a set of basic form inputs such as text, number, time, checkbox, select, textarea, and etc. via Yesod.Form.Fields module. Also, there is Yesod.Form.Nic module providing richtext field using Nic editor. However, this module is grandfathered now and Nic editor is not actively maintained since June 2012. You can find additional richtext editor fields in yesod-form-richtext package (currently in provides support of Summernote editor only).

Changes

ChangeLog for yesod-form

1.6.4

  • Make FormResult an instance of Eq

1.6.3

  • make sure a select field does not lose the selected value even if a validation on the field fails

1.6.2

  • Move addClass from private/undocumented in Yesod.Form.Bootstrap3 to Yesod.Form.Functions #1510
  • Add Yesod.Form.Functions.removeClass #1510
  • Changed Textarea to derive IsString #1514
  • Expose selectFieldHelper #1530

1.6.1

  • Explicitly define (<>) in the Semigroup instance for Enctype

1.6.0

  • Upgrade to yesod-core 1.6.0

1.4.16

  • Korean translation

1.4.15

  • Added Alternative instance to FormResult to simplify handling pages with multiple forms.

1.4.14

  • Added WForm to reduce the verbosity using monadic forms.
  • Added wreq and wopt correspondent functions for WForm.

1.4.13

  • Fixed textareaField writeHtmlEscapedChar trim “\r”

1.4.12

  • Password field does not remember its previous value

1.4.11

  • Fix warnings
  • Fixed spelling errors and wording for Yesod.Form.Functions.convertField’s documentation

1.4.10

  • Fixed identifyForm to properly return FormMissing for empty forms. #1072

1.4.9

  • Added a ToValue instance for Enctype #1296

1.4.8

  • Added Yesod.Form.I18n.Spanish

1.4.6

  • Functor instances for Option/OptionList

1.4.5

  • Foldable/Traversable instances for FormResult #1089

1.4.4.1

  • runFormPost has wrong behavior for empty forms #950

1.4.4

  • Add a Semigroup instance

1.4.3

Added jqueryDatePickerDayField.

1.4.2.1

Documentation updates

1.4.2

Added timeFieldTypeTime and timeFieldTypeText, and deprecated timeField itself.