summaryrefslogtreecommitdiff
path: root/configure.hs
diff options
context:
space:
mode:
Diffstat (limited to 'configure.hs')
-rw-r--r--configure.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.hs b/configure.hs
index 9f7179c53..b68fa12db 100644
--- a/configure.hs
+++ b/configure.hs
@@ -51,7 +51,7 @@ getVersionString = do
let verline = head $ lines changelog
return $ middle (words verline !! 1)
where
- middle s = drop 1 $ take (length s - 1) s
+ middle = drop 1 . init
{- Set up cabal file with version. -}
cabalSetup :: IO ()