Skip to content

Commit

Permalink
More verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
augustss committed Jan 1, 2025
1 parent 258ee12 commit 52e23c1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/MicroCabal/Main.hs
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ build env = do
sect s@(Section "executable" _ _) | TgtExe `elem` targets env = buildExe env glob s
sect s@(Section "library" _ _) | TgtLib `elem` targets env = buildLib 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

Expand Down Expand Up @@ -424,6 +425,8 @@ cmdParse env [fn] = do
let cbl = parseCabal fn rfile
info = FlagInfo { os = I.os, arch = I.arch, flags = [], impl = comp }
ncbl = normalize info cbl
--putStrLn $ showCabal cbl
putStrLn "Unnormalized:"
putStrLn $ showCabal cbl
putStrLn "Normalized:"
putStrLn $ showCabal ncbl
cmdParse _ _ = error "cmdParse"

0 comments on commit 52e23c1

Please sign in to comment.