diff options
| author | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-27 20:34:57 +0200 |
|---|---|---|
| committer | Roman Smrž <roman.smrz@seznam.cz> | 2026-08-27 23:04:38 +0200 |
| commit | 0cbbe31c5f16df73dcc3a73b37cac4a72948f3a6 (patch) | |
| tree | f607a68d575ac670b9a637a967eabbe56f9257aa /src/Network.hs | |
| parent | d8420a37ffe9e752816b071fced4a972ca1fad23 (diff) | |
Accept various builtin types in type expressions
Diffstat (limited to 'src/Network.hs')
| -rw-r--r-- | src/Network.hs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Network.hs b/src/Network.hs index 3f6dec1..b48a233 100644 --- a/src/Network.hs +++ b/src/Network.hs @@ -101,11 +101,11 @@ instance HasNetns Network where getNetns = netNetns instance HasNetns Node where getNetns = nodeNetns instance ExprType Network where - textExprType _ = T.pack "network" + textExprType _ = T.pack "Network" textExprValue n = "<network:" <> textNetworkName (netPrefix n) <> ">" instance ExprType Node where - textExprType _ = T.pack "node" + textExprType _ = T.pack "Node" textExprValue n = T.pack "<node:" <> textNodeName (nodeName n) <> ">" recordMembers = map (first T.pack) |