\\\"\\n"
escape = replace "\"" "\\\"" ∘ replace "\n" "\\n"

-- | relace substring
-- >>> replace "a" "b" "ab"
-- "bb"

escape = replace "\"" "\\\"" ∘ replace "\n" "\\n"
escape = replace "\"" "\\\"" ∘ replace "\n" "\\n"