From 204169f26907828d5310845a94af7c4ffafa6cd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 11 Apr 2026 16:11:58 +0200 Subject: Tag definition --- src/Test.hs | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/Test.hs') diff --git a/src/Test.hs b/src/Test.hs index cfeaa2d..f1d1f96 100644 --- a/src/Test.hs +++ b/src/Test.hs @@ -1,5 +1,6 @@ module Test ( Test(..), + Tag(..), TestStep(..), TestBlock(..), @@ -28,6 +29,12 @@ data Test = Test , testSteps :: Expr (TestStep ()) } +data Tag = Tag ModuleName VarName + +instance ExprType Tag where + textExprType _ = "Tag" + textExprValue (Tag mname vname) = " textModuleName mname <> "." <> textVarName vname <> ">" + data TestBlock a where EmptyTestBlock :: TestBlock () TestBlockStep :: TestBlock () -> TestStep a -> TestBlock a -- cgit v1.2.3