ghc-mod
ghc-mod copied to clipboard
Happy Haskell Hacking for editors. DEPRECATED
I seem to be getting the same error as reported in #831 whenever I try to run `ghc-mod check src/Parser.hs`. `ghc-mod` was installed with stackage LTS 9.1, which seems to...
Would it be reasonably easy to add a command line flag that directs `ghc-mod` to initially `chdir` into a (presumably project root) directory? This would make `ghc-mod` play better with...
It would be nice to have support for stack script mode, where a haskell file gets turned into a runable script with no other file : https://github.com/commercialhaskell/stack/blob/master/doc/GUIDE.md#ghcrunghc
cabal-helper-wrapper: Installing a private copy of Cabal because we couldn't find the right version in your global/user package-db, this might take a while but will only happen once per Cabal...
Currently ghc-mod is unaware of the package database used in a nix-shell. There is a PR for this (#760), but a more general approach is needed than just fixing things...
Since I am using `stack` and currently only `stack`, the command to invoke `ghc` is actually a script `ghc-wrapper` which actually executes `stack ghc -- `. However, I don't see...
a.hs ```haskell a :: Int a :: Int a = 5 main :: IO () main = print a ``` ```bash ghc-mod --map-file b.hs=a.hs check b.hs b.hs:3:1:Duplicate type signatures for...
I've created a test project with `stack new new-template`. In the automatically generated `src/Lib.hs` I added the following line: ``` haskell bar a = a + 2 ``` With the...
`withMappedFile` probably doesn't expect to be run outside project root (cc @lierdakil) (Reported on 2017-04-30 via IRC by `__monty__`)
In `haskell-ide-engine`, and `HaRe`, we make use of [runGmltWith](https://github.com/DanielG/ghc-mod/blob/35690941aadbe44d9401102ab44a39753e0bb2b5/core/GhcMod/Target.hs#L147). The usage requires a GHC `hscFrontendHook` to store the GHC ASTs as the targets are loaded. Since this usage is driven...