lok*_*oki 2 unicode haskell xmonad
我想在 Xmonad 的工作区中使用Nerd Fonts 中的Unicode 字符。
myWorkspaces = ["1:?", "2:?", "3:?", "4:?", "5:?", "6:?", "7:?", "8:?", "9:?"]
Run Code Online (Sandbox Code Playgroud)
以供参考:
但是,我在编译时收到以下错误:
xmonad.hs:191:13: error:
lexical error in string/character literal at character '\62057'
|
191 | ["1:?", "2:?", "3:?", "4:?", "5:?", "6:?", "7:?", "8:?", "9:?"]
| ^
Please check the file for errors.
Warning: Missing charsets in String to FontSet conversion
Run Code Online (Sandbox Code Playgroud)
有没有机会使用一整套书呆子字体 unicode 字符?我已经看到其他人在他们的 config 中使用了 unicode 的子集。
我认为您遇到了GHC 错误 #5518。作为一种解决方法,请尝试使用转义语法(例如,"1:\62057"或"1:\xf269"代替"1:?")。