Skip to content

Commit f9bde23

Browse files
committed
CompilerPaths: add compilerVersionL
1 parent 9af78f5 commit f9bde23

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Stack/Types/CompilerPaths.hs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ module Stack.Types.CompilerPaths
55
, GhcPkgExe (..)
66
, HasCompiler (..)
77
, cabalVersionL
8+
, compilerVersionL
89
, cpWhich
910
, getCompilerPath
1011
, getGhcPkgExe
@@ -62,6 +63,9 @@ newtype GhcPkgExe
6263
cabalVersionL :: HasCompiler env => SimpleGetter env Version
6364
cabalVersionL = compilerPathsL.to cpCabalVersion
6465

66+
compilerVersionL :: HasCompiler env => SimpleGetter env ActualCompiler
67+
compilerVersionL = compilerPathsL.to cpCompilerVersion
68+
6569
cpWhich :: (MonadReader env m, HasCompiler env) => m WhichCompiler
6670
cpWhich = view $ compilerPathsL.to (whichCompiler.cpCompilerVersion)
6771

0 commit comments

Comments
 (0)