Skip to content

Commit

Permalink
Pass shake-profiling option when not using --lsp (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpickering authored and cocreature committed Jan 28, 2020
1 parent 956e11d commit cb28287
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion exe/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ main = do
let grab file = fromMaybe (head sessions) $ do
cradle <- Map.lookup file filesToCradles
Map.lookup cradle cradlesToSessions
ide <- initialise def mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) (defaultIdeOptions $ return $ return . grab) vfs

let options =
(defaultIdeOptions $ return $ return . grab)
{ optShakeProfiling = argsShakeProfiling }
ide <- initialise def mainRule (pure $ IdInt 0) (showEvent lock) (logger Info) options vfs

putStrLn "\nStep 6/6: Type checking the files"
setFilesOfInterest ide $ Set.fromList $ map toNormalizedFilePath files
Expand Down

0 comments on commit cb28287

Please sign in to comment.