feat: add convenience functions for constructing a LeanTrace

This commit is contained in:
tydeu 2021-07-15 13:04:31 -04:00
parent b14eef6e06
commit 93c9543976

View file

@ -48,3 +48,13 @@ structure LeanTrace where
hash : Hash
mtime : MTime
deriving Inhabited
namespace LeanTrace
def fromHash (hash : Hash) : LeanTrace :=
LeanTrace.mk hash 0
def fromMTime (mtime : MTime) : LeanTrace :=
LeanTrace.mk 0 mtime
end LeanTrace