From 5c5eda9e8333bd652d0ea9cdbeb6fc4d5bdfe5b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Fri, 26 Nov 2021 22:34:40 +0100 Subject: Separate constructors for internal process names --- src/Test.hs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/Test.hs') diff --git a/src/Test.hs b/src/Test.hs index 4988098..465b424 100644 --- a/src/Test.hs +++ b/src/Test.hs @@ -11,6 +11,8 @@ import qualified Data.Text as T import Text.Regex.TDFA +import Process + data Test = Test { testName :: Text , testSteps :: [TestStep] @@ -21,15 +23,6 @@ data TestStep = Spawn ProcName NodeName | Expect ProcName Regex Text | Wait -newtype ProcName = ProcName Text - deriving (Eq, Ord) - -textProcName :: ProcName -> Text -textProcName (ProcName name) = name - -unpackProcName :: ProcName -> String -unpackProcName (ProcName tname) = T.unpack tname - newtype NodeName = NodeName Text deriving (Eq, Ord) -- cgit v1.2.3