https://github.com/Helium4Haskell/lvm
Tip revision: 26857cef4ea09c7a96311c898ac6859b66f29d39 authored by Lars on 05 December 2018, 11:11:42 UTC
Added qualified typing to LVM
Added qualified typing to LVM
Tip revision: 26857ce
math1.core
module Math1 where
instruction primadd "addint" :: Int! -> Int! -> Int!
instruction primsub "subint" :: Int! -> Int! -> Int!
add x y = case x of x -> case y of y -> primadd x y
sub x y = case x of x -> case y of y -> primsub x y
-- test simple addition & substraction
main = sub 44 (add 1 1)