aboutsummaryrefslogtreecommitdiff
path: root/src/CabalHelper/Compiletime
diff options
context:
space:
mode:
authorDaniel Gröber <dxld@darkboxed.org>2017-10-04 16:56:11 +0200
committerDaniel Gröber <dxld@darkboxed.org>2017-10-04 16:56:11 +0200
commit1e36bd795f2045271d0f413db60de184b20dfc39 (patch)
treea32578e938a09c85e2a9ae792e01f80ccdf38a17 /src/CabalHelper/Compiletime
parenta3f381ba91898ce674f0fe5c948fad9ceb03b61e (diff)
Move 'trim' to common
Diffstat (limited to 'src/CabalHelper/Compiletime')
-rw-r--r--src/CabalHelper/Compiletime/Compile.hs3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/CabalHelper/Compiletime/Compile.hs b/src/CabalHelper/Compiletime/Compile.hs
index 8cc565e..77cb037 100644
--- a/src/CabalHelper/Compiletime/Compile.hs
+++ b/src/CabalHelper/Compiletime/Compile.hs
@@ -565,9 +565,6 @@ cabalInstallVersion :: Options -> IO Version
cabalInstallVersion Options {..} = do
parseVer . trim <$> readProcess cabalProgram ["--numeric-version"] ""
-trim :: String -> String
-trim = dropWhileEnd isSpace
-
createPkgDb :: Options -> Either String Version -> IO PackageDbDir
createPkgDb opts@Options {..} cabalVer = do
db@(PackageDbDir db_path) <- getPrivateCabalPkgDb opts cabalVer