# 053: Show Char においてエスケープ未対応 [↑up](bunny_notes) - issued: 2020-05-03 - 分類: 分類:C 改善項目 - status: Open ## 概要 instance Show Char の実装において、エスケープの処理が未実装 $$
{
instance Show Char where
  -- todo: escape
  show c = ['\'', c, '\'']
  showList cs = (:) '"' . showl cs
    where -- showl "" = (:) '"'
          showl [] = (:) '"'
          -- showl ('"':cs) = (++) "\\\"" . showl cs
          showl (c:cs) = showLitChar c . showl cs

-- todo: should convert to printable characters
showLitChar c = (++) [c]
$$}