Skip to content

Commit

Permalink
Hard code rendering of lists and tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
hojberg committed Dec 22, 2023
1 parent 1d97e2c commit 0e93589
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion src/Code/DefinitionSummaryTooltip.elm
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,29 @@ viewSummary : WebData DefinitionSummary -> Maybe (Tooltip.Content msg)
viewSummary summary =
let
viewBuiltinType name =
let
name_ =
case FQN.toString name of
"[" ->
"List"

"]" ->
"List"

"(" ->
"Tuple"

")" ->
"Tuple"

n ->
n
in
span
[]
[ span [ class "data-type-modifier" ] [ text "builtin " ]
, span [ class "data-type-keyword" ] [ text "type" ]
, span [ class "type-reference" ] [ text (" " ++ FQN.toString name) ]
, span [ class "type-reference" ] [ text (" " ++ name_) ]
]

viewSummary_ s =
Expand Down

0 comments on commit 0e93589

Please sign in to comment.