Skip to content

v0.1.1

Compare
Choose a tag to compare
@thomashoneyman thomashoneyman released this 31 Jul 07:46
f3a24b8

Adds the ability to generate a record of SProxy from a form. This is useful to avoid boilerplate when writing large forms with lots of fields.

newtype Form f = Form
  { name :: f Void String String
  , email :: f Void String String
  , city :: f Void Int String
  , other :: f Int String Int
  }
derive instance newtypeForm :: Newtype (Form f) _

proxies :: Proxies Form
proxies = mkSProxies (FormProxy :: FormProxy Form)