From 4ed8bf7d23804e92217a37ab4ca88a704e456039 Mon Sep 17 00:00:00 2001 From: Mann mit Hut Date: Wed, 5 Jun 2024 18:33:44 +0200 Subject: [PATCH] Added small comment on the use of toDhallPath in Dhall.Test.Tags --- dhall/tests/Dhall/Test/Tags.hs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dhall/tests/Dhall/Test/Tags.hs b/dhall/tests/Dhall/Test/Tags.hs index 5ede3e4e7..41fdc9ba2 100644 --- a/dhall/tests/Dhall/Test/Tags.hs +++ b/dhall/tests/Dhall/Test/Tags.hs @@ -29,6 +29,8 @@ getTests = do tagsTest :: Text -> TestTree tagsTest prefix = Tasty.HUnit.testCase (Text.unpack prefix) $ do + -- The use of toDhallPah is a hack to ensure we always get the same file + -- paths, i.e. ones with a '.' prefixed and UNIX path separators. let inputFile = Text.unpack (Test.Util.toDhallPath prefix <> ".dhall") let outputFile = Text.unpack (prefix <> ".tags")