instance (Sym_Balance term, Sym_Lambda term) => Sym_Balance (BetaT term)
instance NameTyOf Balance where
- nameTyOf _c = ["LCC"] `Mod` "Balance"
+ nameTyOf _c = ["Balance"] `Mod` "Balance"
-- instance FixityOf Balance
instance ClassInstancesFor Balance where
- proveConstraintFor _ (TyApp _ (TyConst _ _ q) b)
+ {-
+ proveConstraintFor _ (TyConst _ _ c :$ q :@ db :@ b)
+ | Just HRefl <- proj_ConstKiTy @_ @RunQuery c
+ , Just HRefl <- proj_ConstKiTy @_ @Query q
+ , Just HRefl <- proj_ConstKiTy @_ @(LCC.LCC LCC.SourceRead) db
+ , Just HRefl <- proj_ConstKiTy @_ @Balance b
+ = Just Dict
+ -}
+ proveConstraintFor _ (TyConst _ _ q :$ b)
| Just HRefl <- proj_ConstKiTy @_ @Balance b
= case () of
_ | Just Refl <- proj_Const @Show q -> Just Dict
instance TypeInstancesFor Balance
instance Gram_Term_AtomsFor src ss g Balance
instance (Source src, SymInj ss Balance) => ModuleFor src ss Balance where
- moduleFor = ["LCC"] `moduleWhere`
+ moduleFor = ["Balance"] `moduleWhere`
[ "balance" := teBalance_balance
]