From 8ac39a33787a373349525c214ac8a361dcb292c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Gr=C3=B6ber?= Date: Fri, 25 Apr 2014 20:48:20 +0200 Subject: [PATCH] Add benchmarks to `cabalAllBuildInfo` --- Language/Haskell/GhcMod/CabalApi.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Language/Haskell/GhcMod/CabalApi.hs b/Language/Haskell/GhcMod/CabalApi.hs index 6a1ac2a..d9bfdb7 100644 --- a/Language/Haskell/GhcMod/CabalApi.hs +++ b/Language/Haskell/GhcMod/CabalApi.hs @@ -138,11 +138,12 @@ cabalCppOptions dir = do -- | Extracting all 'BuildInfo' for libraries, executables, and tests. cabalAllBuildInfo :: PackageDescription -> [BuildInfo] -cabalAllBuildInfo pd = libBI ++ execBI ++ testBI +cabalAllBuildInfo pd = libBI ++ execBI ++ testBI ++ benchBI where libBI = map P.libBuildInfo $ maybeToList $ P.library pd execBI = map P.buildInfo $ P.executables pd testBI = map P.testBuildInfo $ P.testSuites pd + benchBI = map P.benchmarkBuildInfo $ P.benchmarks pd ----------------------------------------------------------------