Haskell语言学习笔记(89)Unicode

unicode-show

$ cabal install unicode-show
Installed unicode-show-0.1.0.2
Prelude> :m +Text.Show.Unicode
Prelude Text.Show.Unicode> 
Prelude Text.Show.Unicode> ("Хорошо!",["哈斯克尔7.6.1的力量","感じる"])
("\1061\1086\1088\1086\1096\1086!",["\21704\26031\20811\23572\&7.6.1\30340\21147\37327","\24863\12376\12427"])
Prelude Text.Show.Unicode> uprint it
"(\"Хорошо!\",[\"哈斯克尔7.6.1的力量\",\"感じる\"])"
Prelude Text.Show.Unicode> :set -interactive-print=Text.Show.Unicode.uprint
Prelude Text.Show.Unicode> it
("Хорошо!",["哈斯克尔7.6.1的力量","感じる"])

猜你喜欢

转载自www.cnblogs.com/zwvista/p/9426245.html