3 ms·
Excellent. I also would have accepted Violence.hs:5:35: No instance for (Shootable BodyPart) arising from a use of 'shoot' Possible fix: ad
by jerf 13y ago
Excellent. I also would have accepted
Violence.hs:5:35:
No instance for (Shootable BodyPart) arising from a use of 'shoot'
Possible fix: add an instance declaration for (Shootable BodyPart)
In the expression: shoot $ user ^. foot
In an equation for 'violence': violence user = shoot $ user ^. foot
- DanWaterworth 13y agoYou should abstract this; you realize bullets are group actions on the set of feet, right? Edit: Sorry, not group actions, monoid actions. Group actions would mean there was some kind of inverse bullet. Also note that bullets aren't commutative.