@@ -7,7 +7,7 @@ module Core.Evaluate(normalise, normaliseC, normaliseAll,
7 Context, initContext, ctxtAlist, uconstraints, next_tvar,
7 Context, initContext, ctxtAlist, uconstraints, next_tvar,
8 addToCtxt, setAccess, setTotal, addCtxtDef, addTyDecl, addDatatype,
8 addToCtxt, setAccess, setTotal, addCtxtDef, addTyDecl, addDatatype,
9 addCasedef, addOperator,
9 addCasedef, addOperator,
10− lookupTy, lookupP, lookupDef, lookupVal, lookupTotal,
10+ lookupNames, lookupTy, lookupP, lookupDef, lookupVal, lookupTotal,
11 lookupTyEnv, isConName, isFnName,
11 lookupTyEnv, isConName, isFnName,
12 Value(..)) where
12 Value(..)) where
@@ -697,6 +697,11 @@ addOperator n ty a op uctxt
698tfst (a, _, _) = a
698tfst (a, _, _) = a
700+lookupNames :: Maybe [String] -> Name -> Context -> [Name]
701+lookupNames root n ctxt
702+ = let ns = lookupCtxtName root n (definitions ctxt) in
700lookupTy :: Maybe [String] -> Name -> Context -> [Type]
705lookupTy :: Maybe [String] -> Name -> Context -> [Type]
701lookupTy root n ctxt
706lookupTy root n ctxt
702 = do def <- lookupCtxt root n (definitions ctxt)
707 = do def <- lookupCtxt root n (definitions ctxt)