Daniel Gröber (dxld)

Results 357 comments of Daniel Gröber (dxld)

Hang on didn't the haskell-mode people talk about some error overlay support? Maybe that's them overriding our keybindings?

There you go: https://github.com/haskell/haskell-mode/blob/ea977e9bfab40eaf12d8ecbba50e23f3764afef0/haskell.el#L53

Also: https://github.com/haskell/haskell-mode/issues/856

I can indeed reproduce this :O ``` rm -rf foo; stack new foo; cd foo; sed -i 's/\(build-depends:.*\)/\1, atomic-primops/' foo.cabal; printf '{-# LANGUAGE TemplateHaskell #-}\nmain = return ()\n' > src/Lib.hs;...

Alright so in order to figure out if this is a bug in ghc-mod or in GHC itself we should construct a testcase using the GHC API directly, something along...

This should be very easy to add. Here is the code that looks for stack.yaml: https://github.com/DanielG/ghc-mod/blob/19b3de356928f7c1a7aa3a59430beae08a883e7b/Language/Haskell/GhcMod/PathsAndFiles.hs#L75 The path isn't used anywhere we only use this to check for it's existence...

Okay so the two distinct ways to throw error are a bit of a pain I agree. The thinking is that GhcModError should be used for errors that library clients...

I'm not sure what can be done about this if anything. If it's a bug in GHC there's not much we can do other than adding a workaround. I have...

I see your point but hs-boot being ill supported is exactly what I meant as we can see here where GHC itself doesn't support them properly ;) Anyways I'm all...

You might also want to test HomeModuleGraph (https://github.com/DanielG/ghc-mod/blob/master/Language/Haskell/GhcMod/HomeModuleGraph.hs#L148) because it probably ignores hs-boot moules but I'm not sure if that's actually true. The code in there is mostly modeled on...