为 Xmonad 工作区使用 unicode 字符

Use unicode characters for Xmonad workspaces

我想将 Nerd Fonts 中的 Unicode 字符用于我在 Xmonad 中的工作区。

myWorkspaces = ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]

供参考:

但是,我在编译时遇到以下错误:

xmonad.hs:191:13: error:
    lexical error in string/character literal at character '057'
    |
191 |         ["1:", "2:", "3:", "4:", "5:", "6:ﱘ", "7:", "8:", "9:"]
    |             ^

Please check the file for errors.

Warning: Missing charsets in String to FontSet conversion 

是否有机会使用全套书呆子字体 unicode 字符?我看到其他人在 .

中使用了 unicode 的子集

我认为您 运行 喜欢 GHC bug #5518。作为解决方法,尝试使用转义语法(例如,"1:057""1:\xf269" 而不是 "1:")。