Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Probe-tools: Print stack ghc version #3093

Merged
merged 5 commits into from
Aug 12, 2022
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions exe/Wrapper.hs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ module Main where
import Control.Monad.Extra
import Data.Char (isSpace)
import Data.Default
import Data.Either (fromRight)
import Data.Foldable
import Data.List
import Data.Void
Expand Down Expand Up @@ -79,6 +80,10 @@ main = do
putStrLn hlsVer
putStrLn "Tool versions found on the $PATH"
putStrLn $ showProgramVersionOfInterest programsOfInterest
putStrLn "Tool versions found by cradle"
cradle <- findProjectCradle' False
ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
putStrLn $ "ghc:\t\t" ++ fromRight "Not found" ghcVersion

VersionMode PrintVersion ->
putStrLn hlsVer
Expand Down