Skip to content

Commit d74f009

Browse files
committed
Probetools: cradle ghc version added to wrapper
1 parent 511527c commit d74f009

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

exe/Wrapper.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ module Main where
1414
import Control.Monad.Extra
1515
import Data.Char (isSpace)
1616
import Data.Default
17+
import Data.Either (fromRight)
1718
import Data.Foldable
1819
import Data.List
1920
import Data.Void
@@ -79,6 +80,10 @@ main = do
7980
putStrLn hlsVer
8081
putStrLn "Tool versions found on the $PATH"
8182
putStrLn $ showProgramVersionOfInterest programsOfInterest
83+
putStrLn "Tool versions found by cradle"
84+
cradle <- findProjectCradle' False
85+
ghcVersion <- runExceptT $ getRuntimeGhcVersion' cradle
86+
putStrLn $ "ghc:\t\t" ++ fromRight "Not found" ghcVersion
8287

8388
VersionMode PrintVersion ->
8489
putStrLn hlsVer

0 commit comments

Comments
 (0)