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

标签 haskell unicode xmonad

我想使用 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/

相关文章:

Haskell IO 递归

parsing - 使用 Haskell/Parsec 转换\"into "

haskell - 您如何使用列表 monad 来计算/表示非确定性计算的结果?

unicode - MIT Scheme 在解释器中使用特殊字符

haskell - 模式匹配与 guard 混合

security - 带有 unicode 路径的 OpenSSL

ios - 检测 NSString 中是否存在不间断空格?

XMonad 窗口拇指概述

haskell - XMonad 根据显示的监视器设置布局

haskell - 如何删除 XMonad 中所有 float 窗口的边框