-- INSTANTIATE VARIABLES

canonical :: Var.Canonical -> JS.Expression ()
canonical (Var.Canonical home name) =
  if Help.isOp name then
    JS.BracketRef () (addRoot home "_op") (JS.StringLit () name)

  else
    addRoot home (safe name)
canonical :: Var.Canonical -> JS.Expression ()
canonical (Var.Canonical home name) =
  if Help.isOp name then
    JS.BracketRef () (addRoot home "_op") (JS.StringLit () name)

  else
    addRoot home (safe name)
canonical (Var.Canonical home name) =
  if Help.isOp name then
    JS.BracketRef () (addRoot home "_op") (JS.StringLit () name)

  else
    addRoot home (safe name)