Create Data.NumIdr.Multiply

This commit is contained in:
Kiana Sheibani 2022-05-26 18:50:07 -04:00
parent 97d1bdb538
commit 87d8814c38
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
6 changed files with 122 additions and 8 deletions

View file

@ -0,0 +1,13 @@
module Data.NumIdr.Multiply
%default total
infixr 7 *.
||| A generalized multiplication/transformation operator. This interface is
||| necessary since the standard multiplication operator is homogenous.
public export
interface Mult a b where
0 Result : Type
(*.) : a -> b -> Result