@@ -7,7 +7,7 @@ module Core.Evaluate(normalise, normaliseC, normaliseAll,
77 Context, initContext, ctxtAlist, uconstraints, next_tvar,
88 addToCtxt, setAccess, setTotal, addCtxtDef, addTyDecl, addDatatype,
99 addCasedef, addOperator,
10− lookupTy, lookupP, lookupDef, lookupVal, lookupTotal,
10+ lookupNames, lookupTy, lookupP, lookupDef, lookupVal, lookupTotal,
1111 lookupTyEnv, isConName, isFnName,
1212 Value(..)) where
1313
@@ -697,6 +697,11 @@ addOperator n ty a op uctxt
697697
698698tfst (a, _, _) = a
699699
700+lookupNames :: Maybe [String] -> Name -> Context -> [Name]
701+lookupNames root n ctxt
702+ = let ns = lookupCtxtName root n (definitions ctxt) in
703+ map fst ns
704+
700705lookupTy :: Maybe [String] -> Name -> Context -> [Type]
701706lookupTy root n ctxt
702707 = do def <- lookupCtxt root n (definitions ctxt)