import Language.Symantic
import Language.Symantic.Lib (a0)
-import Hcompta.Quantity
+import Hcompta.Quantity as H hiding (neg)
+import qualified Hcompta.Quantity as H
-- * Class 'Sym_Negable'
type instance Sym Negable = Sym_Negable
neg = trans1 neg
instance Sym_Negable Eval where
- neg = eval1 quantity_neg
+ neg = eval1 H.neg
instance Sym_Negable View where
neg = view1 "neg"
instance (Sym_Negable r1, Sym_Negable r2) => Sym_Negable (Dup r1 r2) where
instance (Sym_Negable term, Sym_Lambda term) => Sym_Negable (BetaT term)
instance NameTyOf Negable where
- nameTyOf _c = ["LCC"] `Mod` "Negable"
+ nameTyOf _c = ["Negable"] `Mod` "Negable"
instance FixityOf Negable
instance ClassInstancesFor Negable
instance TypeInstancesFor Negable
instance Gram_Term_AtomsFor src ss g Negable
instance (Source src, SymInj ss Negable) => ModuleFor src ss Negable where
- moduleFor = ["LCC"] `moduleWhere`
+ moduleFor = ["Negable"] `moduleWhere`
[ "-" `withPrefix` 10 := teNegable_neg
]