haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

haskell-align-imports barfs on Unicode?

Open Ptival opened this issue 6 years ago • 1 comments

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?

Ptival avatar Jul 29 '18 23:07 Ptival

This seems to be the cause of the problem: https://github.com/haskell/haskell-mode/blob/80225e09bf06ab3962b24812f014f948218e0c80/haskell-align-imports.el#L105

Ptival avatar Jul 30 '18 15:07 Ptival