packages feed

idris-0.10: libs/contrib/Data/Sign.idr

module Data.Sign

||| A representation of signs for signed datatypes such as `ZZ`
data Sign = Plus | Zero | Minus

||| Discover the sign of some type
interface Signed t where
  total sign : t -> Sign