tomjaguarpaw / tilapia

Improving all Haskell's programmer interfaces
65 stars 2 forks source link

quot, div, mod and rem should have examples #110

Open tomjaguarpaw opened 2 years ago

tomjaguarpaw commented 2 years ago

quot, div, mod and rem should have examples showing truncation direction and positivity/negativity.

https://www.stackage.org/haddock/lts-18.23/base-4.14.3.0/Prelude.html#v:quot

noughtmare commented 2 years ago

Is it technically required for an instance to define what it means to truncate? I can imagine that the polymorphism makes documentation hard. But I guess it should be fine to just show an example with a specific instance.