src/Tools/Haskell/Markup.hs
changeset 69315 fc1a8df3062d
parent 69291 36d711008292
child 69320 fc221fa79741
--- a/src/Tools/Haskell/Markup.hs	Mon Nov 19 12:39:39 2018 +0100
+++ b/src/Tools/Haskell/Markup.hs	Mon Nov 19 12:50:23 2018 +0100
@@ -14,6 +14,8 @@
 
   nameN, name, xnameN, xname, kindN,
 
+  bindingN, binding, entityN, entity, defN, refN,
+
   completionN, completion, no_completionN, no_completion,
 
   lineN, end_lineN, offsetN, end_offsetN, fileN, idN, positionN, position,
@@ -94,6 +96,24 @@
 kindN = "kind"
 
 
+{- formal entities -}
+
+bindingN :: String; binding :: T
+(bindingN, binding) = markup_elem "binding"
+
+entityN :: String; entity :: String -> String -> T
+entityN = "entity"
+entity kind name =
+  (entityN,
+    (if null name then [] else [(nameN, name)]) ++ (if null kind then [] else [(kindN, kind)]))
+
+defN :: String
+defN = "def"
+
+refN :: String
+refN = "ref"
+
+
 {- completion -}
 
 completionN :: String; completion :: T