Skip to content

Commit

Permalink
Fix typo.
Browse files Browse the repository at this point in the history
augustss committed Dec 26, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent 676715c commit fc3b8f8
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/MicroCabal/Main.hs
Original file line number Diff line number Diff line change
@@ -322,6 +322,7 @@ install env = do
sect s@(Section "executable" _ _) | TgtExe `elem` targets env = installExe env glob s
sect s@(Section "library" _ _) | TgtLib `elem` targets env = installLib env glob s
sect _ = return ()
message env 3 $ "Unnormalized Cabal file:\n" ++ show cbl
message env 2 $ "Normalized Cabal file:\n" ++ show ncbl
mapM_ sect $ addMissing sects

2 changes: 1 addition & 1 deletion src/MicroCabal/Parse.hs
Original file line number Diff line number Diff line change
@@ -102,7 +102,7 @@ lower = map toLower
dropCabalComments :: String -> String
dropCabalComments = unlines . map cmt . lines
where
cmt ('-':'-':'M':'A':'B':'A':'L':cs) = cmt cs
cmt ('-':'-':'M':'C':'A':'B':'A':'L':cs) = cmt cs
cmt s | take 2 (dropWhile (== ' ') s) == "--" = ""
| "--NOT_MHS" `isSuffixOf` s = ""
| otherwise = s

0 comments on commit fc3b8f8

Please sign in to comment.