@@ -13,7 +13,7 @@ module Idris.Core.Evaluate(normalise, normaliseTrace, normaliseC,
13 lookupNames, lookupTyName, lookupTyNameExact, lookupTy, lookupTyExact,
13 lookupNames, lookupTyName, lookupTyNameExact, lookupTy, lookupTyExact,
14 lookupP, lookupP_all, lookupDef, lookupNameDef, lookupDefExact, lookupDefAcc, lookupDefAccExact, lookupVal,
14 lookupP, lookupP_all, lookupDef, lookupNameDef, lookupDefExact, lookupDefAcc, lookupDefAccExact, lookupVal,
15 mapDefCtxt,
15 mapDefCtxt,
16− lookupTotal, lookupNameTotal, lookupMetaInformation, lookupTyEnv, isTCDict, isDConName, canBeDConName, isTConName, isConName, isFnName,
16+ lookupTotal, lookupTotalExact, lookupNameTotal, lookupMetaInformation, lookupTyEnv, isTCDict, isDConName, canBeDConName, isTConName, isConName, isFnName,
17 Value(..), Quote(..), initEval, uniqueNameCtxt, uniqueBindersCtxt, definitions,
17 Value(..), Quote(..), initEval, uniqueNameCtxt, uniqueBindersCtxt, definitions,
18 isUniverse) where
18 isUniverse) where
@@ -1084,6 +1084,10 @@ lookupTotal :: Name -> Context -> [Totality]
1084lookupTotal n ctxt = map mkt $ lookupCtxt n (definitions ctxt)
1084lookupTotal n ctxt = map mkt $ lookupCtxt n (definitions ctxt)
1085 where mkt (d, a, t, m) = t
1085 where mkt (d, a, t, m) = t
1087+lookupTotalExact :: Name -> Context -> Maybe Totality
1088+lookupTotalExact n ctxt = fmap mkt $ lookupCtxtExact n (definitions ctxt)
1089+ where mkt (d, a, t, m) = t
1087lookupMetaInformation :: Name -> Context -> [MetaInformation]
1091lookupMetaInformation :: Name -> Context -> [MetaInformation]
1088lookupMetaInformation n ctxt = map mkm $ lookupCtxt n (definitions ctxt)
1092lookupMetaInformation n ctxt = map mkm $ lookupCtxt n (definitions ctxt)
1089 where mkm (d, a, t, m) = m
1093 where mkm (d, a, t, m) = m