diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-11-26 22:34:40 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-11-26 22:34:40 +0100 |
commit | 5c5eda9e8333bd652d0ea9cdbeb6fc4d5bdfe5b7 (patch) | |
tree | e94e509972a2e73d62ba78ddb1d55cdda4a1fd91 /src/Test.hs | |
parent | b03a763688267781cb252681679ac8e11b03c479 (diff) |
Separate constructors for internal process names
Diffstat (limited to 'src/Test.hs')
-rw-r--r-- | src/Test.hs | 11 |
1 files changed, 2 insertions, 9 deletions
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) |