@@ -256,7 +256,7 @@ eval traceon ctxt ntimes genv tm opts = ev ntimes [] True [] tm where
256256 [(TyDecl nt ty, _)] -> do vty <- ev ntimes stk True env ty
257257 return $ VP nt n vty
258258 [(CaseOp ci _ _ _ _ cd, acc)]
259− | (acc == Public || sUN "assert_total" `elem` stk) &&
259+ | (acc == Public || acc == Hidden || sUN "assert_total" `elem` stk) &&
260260 null (fst (cases_totcheck cd)) -> -- unoptimised version
261261 let (ns, tree) = getCases cd in
262262 if blockSimplify ci n stk
@@ -374,7 +374,7 @@ eval traceon ctxt ntimes genv tm opts = ev ntimes [] True [] tm where
374374 do let val = lookupDefAcc n (spec || atRepl || runtime) ctxt
375375 case val of
376376 [(CaseOp ci _ _ _ _ cd, acc)]
377− | acc == Public || sUN "assert_total" `elem` stk ->
377+ | acc == Public || acc == Hidden || sUN "assert_total" `elem` stk ->
378378 -- unoptimised version
379379 let (ns, tree) = getCases cd in
380380 if blockSimplify ci n stk
@@ -743,7 +743,7 @@ instance Show Def where
743743-- Frozen => doesn't reduce
744744-- Hidden => doesn't reduce and invisible to type checker
745745
746−data Accessibility = Public | Frozen | Hidden
746+data Accessibility = Hidden | Public | Frozen | Private
747747 deriving (Eq, Ord)
748748{-!
749749deriving instance NFData Accessibility
@@ -752,7 +752,8 @@ deriving instance NFData Accessibility
752752instance Show Accessibility where
753753 show Public = "public export"
754754 show Frozen = "export"
755− show Hidden = "private"
755+ show Private = "private"
756+ show Hidden = "hidden"
756757
757758-- | The result of totality checking
758759data Totality = Total [Int] -- ^ well-founded arguments
@@ -1042,6 +1043,7 @@ lookupP_all all exact n ctxt
10421043 (Operator ty _ _, a, _, _) -> return (P Ref n' ty, a)
10431044 case snd p of
10441045 Hidden -> if all then return (fst p) else []
1046+ Private -> if all then return (fst p) else []
10451047 _ -> return (fst p)
10461048 where
10471049 names = let ns = lookupCtxtName n (definitions ctxt) in