Sandy Maguire
Sandy Maguire
@alanz this is my latest blocker on the hls saga. Is `addAnnotationsForPretty` broken, or am I just using the wrong function here?
I spent a few hours digging into ghc-exactprint, but the craziness that is this state machine is far beyond my ability to fix.
This also happens even with unique src spans: ```haskell {-# LANGUAGE LambdaCase #-} module Test where import Language.Haskell.GHC.ExactPrint import OccName import HsExpr import HsPat import RdrName import GHC import BasicTypes...
Result from `showAnnData`: ```haskell ({ ghc-exactprint:-1:0 } Just (Ann (DP (0,0)) [] [] [((G AnnCase),DP (0,1)),((G AnnOf),DP (0,1))] Nothing Nothing) (HsCase (NoExt) ({ ghc-exactprint:-1:1 } Just (Ann (DP (0,0)) []...
I've updated the package file, so I'm happy to merge this as soon as the conflicts are resolved.
Thanks!
Yeah, sorry for not documenting this. I didn't want to invest the time in getting nvim working on CI, but still wanted to be ensure the build succeeds. I'd be...
Actually, I think this might be mostly my fault. Here's one of the environments I was trying to expand: ```latex \begin{code} main :: IO () main = do bool !\annotate{2}!...
It works as expected with the given `ParserConf`.
The example code above does break the parser as expected. However, in _long_ documents, this broken parser seems to result in the backtracking issue described above---it will keep consuming input...