import Language.Symantic.Lib.Integer (tyInteger)
-- * Class 'Sym_Num'
-type instance Sym (Proxy Num) = Sym_Num
+type instance Sym Num = Sym_Num
class Sym_Num term where
abs :: Num n => term n -> term n
negate :: Num n => term n -> term n
-- Compiling
instance Gram_Term_AtomsFor src ss g Num
instance (Source src, Inj_Sym ss Num) => ModuleFor src ss Num where
- moduleFor _s = ["Num"] `moduleWhere`
+ moduleFor = ["Num"] `moduleWhere`
[ "abs" := teNum_abs
, "negate" := teNum_negate
, "signum" := teNum_signum