@@ -12,7 +12,7 @@ import Unison.ConstructorType qualified as CT
1212import Unison.DataDeclaration (DataDeclaration (.. ), Modifier (Structural , Unique ))
1313import Unison.DataDeclaration qualified as DD
1414import Unison.DataDeclaration.ConstructorId (ConstructorId )
15- import Unison.Hashing.V2.Convert (hashDataDecls )
15+ import Unison.Hashing.V2.Convert (hashDataDecls , typeToReference )
1616import Unison.Pattern qualified as Pattern
1717import Unison.Reference (Reference )
1818import Unison.Reference qualified as Reference
@@ -46,7 +46,7 @@ pairRef = lookupDeclRef "Tuple"
4646optionalRef = lookupDeclRef " Optional"
4747eitherRef = lookupDeclRef " Either"
4848
49- testResultRef , linkRef , docRef , ioErrorRef , stdHandleRef :: Reference
49+ testResultRef , testResultListRef , linkRef , docRef , ioErrorRef , stdHandleRef :: Reference
5050failureRef , ioFailureRef , tlsFailureRef , arrayFailureRef :: Reference
5151cryptoFailureRef :: Reference
5252exceptionRef , tlsSignedCertRef , tlsPrivateKeyRef :: Reference
@@ -57,6 +57,9 @@ isTestRef = lookupDeclRef "IsTest"
5757
5858testResultRef = lookupDeclRef " Test.Result"
5959
60+ -- Reference for [Test.Result]
61+ testResultListRef = typeToReference @ Symbol (testResultListType () )
62+
6063linkRef = lookupDeclRef " Link"
6164
6265docRef = lookupDeclRef " Doc"
@@ -723,7 +726,7 @@ pattern LinkType ty <- Term.App' (Term.Constructor' (ConstructorReference LinkRe
723726unitType,
724727 pairType,
725728 optionalType,
726- testResultType ,
729+ testResultListType ,
727730 eitherType,
728731 ioErrorType,
729732 fileModeType,
@@ -739,7 +742,7 @@ unitType a = Type.ref a unitRef
739742-- used for the type of the argument to force a thunk
740743thunkArgType = unitType
741744pairType a = Type. ref a pairRef
742- testResultType a = Type. app a (Type. list a) (Type. ref a testResultRef)
745+ testResultListType a = Type. app a (Type. list a) (Type. ref a testResultRef)
743746optionalType a = Type. ref a optionalRef
744747eitherType a = Type. ref a eitherRef
745748ioErrorType a = Type. ref a ioErrorRef
0 commit comments