写入文件没有\"符号haskell

0xA*_*xAX 0 file-io haskell file

例如需要这个文本来写一个文件:

This is some simple text "it's quote", test test

writeFile :: FilePath -> String -> IO ()用来写文件,但是当我尝试在文件中写这个字符串时,在文件中我看到:

This is some simple text \"it\'s quote\", test test

如何删除\符号,我只需要在我的文本文件中"没有\".

谢谢.

Don*_*art 6

String通过该show功能将引用添加到类型中.如果你只是直接写字符串,它将不会被转义.