Create Data.NumIdr.Multiply
This commit is contained in:
parent
97d1bdb538
commit
87d8814c38
6 changed files with 122 additions and 8 deletions
13
src/Data/NumIdr/Multiply.idr
Normal file
13
src/Data/NumIdr/Multiply.idr
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue