gpt4 book ai didi

haskell - 为 Xmonad 工作区使用 unicode 字符

转载 作者:行者123 更新时间:2023-12-01 21:45:55 25 4
gpt4 key购买 nike

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

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

供引用:

Array of workspace Unicode names

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

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

是否有机会使用全套 nerd 字体 unicode 字符?我看到其他人在 their config 中使用了 unicode 的一个子集。 .

最佳答案

我想你遇到了 GHC bug #5518 .作为解决方法,尝试使用转义语法(例如,"1:\62057""1:\xf269" 而不是 "1:")。

关于haskell - 为 Xmonad 工作区使用 unicode 字符,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60682325/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com