positiveAttr x =
  if isPositive x then
    ("class" =: "positive")
  else
    ("class" =: "negative")
positiveAttr x =
  if isPositive x then
    ("class" =: "positive")
  else
    ("class" =: "negative")
positiveAttr x =
  if isPositive x then
    ("class" =: "positive")
  else
    ("class" =: "negative")