summaryrefslogtreecommitdiff
path: root/src/Network.hs
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-08-11 10:43:36 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-08-11 10:55:34 +0200
commita0480b7ac0705a214136a9a5eb50454abfd67985 (patch)
tree6532616bd61bc4771a08a4b6151dad03d9eea529 /src/Network.hs
parente6bab9cb2aabafb27324f7d923739a8f4a96ad97 (diff)
Remove emptyVarValue from ExprType class
Diffstat (limited to 'src/Network.hs')
-rw-r--r--src/Network.hs2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/Network.hs b/src/Network.hs
index 7f0896c..aa06952 100644
--- a/src/Network.hs
+++ b/src/Network.hs
@@ -101,12 +101,10 @@ instance HasNetns Node where getNetns = nodeNetns
instance ExprType Network where
textExprType _ = T.pack "network"
textExprValue n = "s:" <> textNetworkName (netPrefix n)
- emptyVarValue = Network (IpPrefix []) undefined undefined undefined undefined undefined undefined
instance ExprType Node where
textExprType _ = T.pack "node"
textExprValue n = T.pack "n:" <> textNodeName (nodeName n)
- emptyVarValue = Node (IpAddress (IpPrefix []) 0) (NodeName T.empty 0) undefined undefined undefined undefined
recordMembers = map (first T.pack)
[ ("ip", RecordSelector $ textIpAddress . nodeIp)