aboutsummaryrefslogtreecommitdiff
path: root/CabalHelper/Common.hs
diff options
context:
space:
mode:
Diffstat (limited to 'CabalHelper/Common.hs')
-rw-r--r--CabalHelper/Common.hs14
1 files changed, 0 insertions, 14 deletions
diff --git a/CabalHelper/Common.hs b/CabalHelper/Common.hs
index cf606d8..3a6d4b6 100644
--- a/CabalHelper/Common.hs
+++ b/CabalHelper/Common.hs
@@ -50,20 +50,6 @@ errMsg str = do
prog <- getProgName
hPutStrLn stderr $ prog ++ ": " ++ str
-align :: String -> String -> String -> String
-align n an str = let
- h:rest = lines str
- [hm] = match n h
- rest' = [ move (hm - rm) r | r <- rest, rm <- match an r]
- in
- unlines (h:rest')
- where
- match p str' = maybeToList $
- fst <$> find ((p `isPrefixOf`) . snd) ([0..] `zip` tails str')
- move i str' | i > 0 = replicate i ' ' ++ str'
- move i str' = drop i str'
-
-
-- | @getCabalConfigHeader "dist/setup-config"@ returns the cabal version and
-- compiler version
getCabalConfigHeader :: FilePath -> IO (Maybe (Version, (ByteString, Version)))