File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ class Default a where
9898 default def :: (Generic a , GDefault (Rep a )) => a
9999 def = to gdef
100100
101+ instance Default Bool where def = False
101102instance Default Int where def = 0
102103instance Default Int8 where def = 0
103104instance Default Int16 where def = 0
@@ -115,6 +116,9 @@ instance (Integral a) => Default (Ratio a) where def = 0
115116instance (Default a , RealFloat a ) => Default (Complex a ) where def = def :+ def
116117instance (HasResolution a ) => Default (Fixed a ) where def = 0
117118
119+ #if MIN_VERSION_base(4, 10, 0)
120+ instance Default CBool where def = 0
121+ #endif
118122instance Default CShort where def = 0
119123instance Default CUShort where def = 0
120124instance Default CInt where def = 0
You can’t perform that action at this time.
0 commit comments