Transfer: reimplement operators with type classes.

This commit is contained in:
bringert
2005-11-30 17:40:32 +00:00
parent 8cec5d5d1a
commit 997bc8c745
6 changed files with 157 additions and 63 deletions

View File

@@ -1,6 +1,7 @@
import nat
import prelude
fib : Int -> Int
fib : Integer -> Integer
fib 0 = 1
fib 1 = 1
fib n = fib (n-1) + fib (n-2)