Skip to content

Commit 8f643d2

Browse files
committed
FormDefaults instance for Int (as 0)
1 parent c6d3ba1 commit 8f643d2

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)