haskell-mode
haskell-mode copied to clipboard
haskell-align-imports barfs on Unicode?
It seems haskell-align-imports
does not work when the qualified name contains Unicode (like Greek characters).
Try for yourself:
module Test where
import qualified Prelude as Π
import Data.String as S
Replace Π
with P
and it works.
It seems it works as soon as one qualified import does not contain such characters.
module Test where
import qualified Prelude as Π
import Data.String as S
import Data.List as L
Is there some regexp-based filtering for qualified lines that accidentally omits lines that contain Unicode?
This seems to be the cause of the problem: https://github.com/haskell/haskell-mode/blob/80225e09bf06ab3962b24812f014f948218e0c80/haskell-align-imports.el#L105