Packages
doma_witchcraft
1.0.4-doma
Monads and other dark magic (monoids, functors, traversables, &c), forked by doma for maintenance and testing packagesets
Current section
Files
Jump to
Current section
Files
lib/witchcraft/ord/integer.ex
import TypeClass
definst Witchcraft.Ord, for: Integer do
def compare(int_a, int_b) when int_a == int_b, do: :equal
def compare(int_a, int_b) when int_a > int_b, do: :greater
def compare(int_a, int_b) when int_a < int_b, do: :lesser
end