<div dir="ltr">We already have Num instances on things like Sum and Product, could we have them on First and Last? I mostly want fromInteger on these types. To give you a real world example:<div><br></div><div><div><font face="monospace">    keySpeed :: L.Fold KeyboardEventData Double</font></div><div><font face="monospace">    keySpeed =</font></div><div><font face="monospace">      L.foldMap</font></div><div><font face="monospace">        (\KeyboardEventData {keyboardEventKeyMotion} -></font></div><div><font face="monospace">           case keyboardEventKeyMotion of</font></div><div><font face="monospace">             Pressed -> Last (Just 1)</font></div><div><font face="monospace">             Released -> Last (Just 0))</font></div><div><font face="monospace">        (fromMaybe 0 . getLast)</font></div></div><div><br></div><div>keySpeed folds (under Control.Foldl) events from a UI system into the number 1 if the key has been pressed and 0 if the key has been released. It's OK in the above form, but if Last had a Num instance, I could just have</div><div><br></div><div><div><font face="monospace">             Pressed -> 1</font></div><div><font face="monospace">             Released -> 0</font></div></div><div><font face="monospace"><br></font></div><div>Which I find preferable.</div><div><br></div><div>Any thoughts?</div><div>- Ollie</div></div>