These are chat archives for carymrobbins/intellij-haskforce

21st
Sep 2016
Rahul Muttineni
@rahulmutt
Sep 21 2016 12:48
@carymrobbins I spent time going through the codebase today and I think I have a nice idea of how it pieces together. I'll see if I can start work sometime this weekend adapting GHC 7.10.3's alex lexer. I need to work on implementing foreign exports in GHCVM before I get started. Hopefully @LeanderK will be done with his changes by then.
Do you intend to support GHC 8 anytime soon?
Cary Robbins
@carymrobbins
Sep 21 2016 12:50
@rahulmutt - I have no reason not to
Rahul Muttineni
@rahulmutt
Sep 21 2016 12:52
Ok cool. We'll need to figure out a way to feed in the GHC version into the lexer. We can probably fetch that from the Project object (which I don't think is being based to the lexer/parser right now).
passed*
Cary Robbins
@carymrobbins
Sep 21 2016 13:39
it's certainly possible. we currently get the ghc version either by asking stack (stack ghc -- --version) or using the configured ghc
we could fall back to some default version if neither ghc nor stack is configured
Leander Kurscheidt
@LeanderK
Sep 21 2016 14:26
thats one thing i am currently working on. Providing a clean, documented interface and abstraction for the cabal/stack package.
i am making progress, should not take long until i can create the pull-request
Rahul Muttineni
@rahulmutt
Sep 21 2016 14:27
Great, so you'll add something like getGHCVersion() that figures out the version based on cabal/stack?
Leander Kurscheidt
@LeanderK
Sep 21 2016 14:27
yeah
Rahul Muttineni
@rahulmutt
Sep 21 2016 14:27
Awesome.
Cary Robbins
@carymrobbins
Sep 21 2016 15:15
excellent work @LeanderK
Leander Kurscheidt
@LeanderK
Sep 21 2016 21:31
i just want to report that i am making progress (since its rather urgent)
Leander Kurscheidt
@LeanderK
Sep 21 2016 21:38
i (should) have written most of the necessary machinery to provide a clean way to for example get the GHC-version for a haskell-file
and have started to extract Hlint and GHCI from the haskell package (it will migrate to the tools package)