diff -r b367c22c3dd8 -r fc1a8df3062d src/Tools/Haskell/Haskell.thy --- a/src/Tools/Haskell/Haskell.thy Mon Nov 19 12:39:39 2018 +0100 +++ b/src/Tools/Haskell/Haskell.thy Mon Nov 19 12:50:23 2018 +0100 @@ -249,6 +249,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, @@ -329,6 +331,24 @@ kindN = \Markup.kindN\ +{- formal entities -} + +bindingN :: String; binding :: T +(bindingN, binding) = markup_elem \Markup.bindingN\ + +entityN :: String; entity :: String -> String -> T +entityN = \Markup.entityN\ +entity kind name = + (entityN, + (if null name then [] else [(nameN, name)]) ++ (if null kind then [] else [(kindN, kind)])) + +defN :: String +defN = \Markup.defN\ + +refN :: String +refN = \Markup.refN\ + + {- completion -} completionN :: String; completion :: T