Skip to content

Commit a38170a

Browse files
committed
docs: better explanation of the property
1 parent a5797c4 commit a38170a

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lambda-buffers-compiler/test/Test/KindCheck.hs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,13 @@ kcTestFailing =
5656
assertBool "Test should have failed." $
5757
check_ compilerInput'incoherent /= Right ()
5858

59-
-- | TyDef order does not matter when kind checking
59+
{- | TyDef order does not matter when kind checking.
60+
61+
We're not interested in the failure error as there might be more than two
62+
errors in a module - and it is non-determistic which one is first. But it is
63+
deterministic if the property holds for the whole CompilerInput. Therefore we
64+
only track if given the input - the fails or succeeds.
65+
-}
6066
kcTestOrdering :: TestTree
6167
kcTestOrdering =
6268
testProperty "Module order inside the CompilerInput does not matter to the result of the kindchecker." $

0 commit comments

Comments
 (0)