Parsing UnicodeSyntax with haskell-src-exts

前端 未结 1 918
情书的邮戳
情书的邮戳 2021-01-17 13:48

I have a Haskell source file which using Unicode syntax:

{-# LANGUAGE UnicodeSyntax #-}
succ\' :: Int → Int
succ\' = succ

main :: IO ()
main = print $ succ\         


        
相关标签:
1条回答
  • 2021-01-17 14:29

    From a cursory glance at the source, it doesn't look like parseModule extracts language pragmas from the source before parsing (parseFile does do that by calling getExtensions). By the time parsing has begun, it is already too late to enable unicode syntax.

    0 讨论(0)
提交回复
热议问题