Skip to content

Commit bdecbb7

Browse files
authored
Merge pull request #74 from lumihq/default-int-instance
FormDefaults instance for Int (as 0)
2 parents c6d3ba1 + 8f643d2 commit bdecbb7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Lumi/Components/Form/Defaults.purs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class FormDefaults a where
3434
instance formDefaultsUnit :: FormDefaults Unit where formDefaults = unit
3535
instance formDefaultsBoolean :: FormDefaults Boolean where formDefaults = false
3636
instance formDefaultsNumber :: FormDefaults Number where formDefaults = 0.0
37+
instance formDefaultsInt :: FormDefaults Int where formDefaults = 0
3738
instance formDefaultsString :: FormDefaults String where formDefaults = ""
3839
instance formDefaultsArray :: FormDefaults (Array a) where formDefaults = []
3940

0 commit comments

Comments
 (0)