File tree Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Expand file tree Collapse file tree 3 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 1+ # 0.0.0.20240703
2+
3+ - Fix "Project Unit Id" bug
4+
15# 0.0.0.20240702
26
37- Support ` cabal-install-3.12 ` changed store directory logic
Original file line number Diff line number Diff line change 11cabal-version : 2.2
22name : cabal-docspec
3- version : 0.0.0.20240702
3+ version : 0.0.0.20240703
44synopsis : Run examples in your docs
55category : Development
66description :
Original file line number Diff line number Diff line change @@ -87,12 +87,14 @@ getGhcInfo tracer ghc = do
8787 lookup " LibDir" info
8888 libDir <- makeAbsoluteFilePath libDirStr
8989
90- let pui :: String
91- pui = fromMaybe " " $ lookup " Project Unit Id" info
92-
93- let prefix = " ghc-" ++ prettyShow ver ++ " -"
94- unless (L. isPrefixOf prefix pui) $
95- die tracer $ prefix ++ " is not prefix of Project Unit Id: " ++ pui
90+ pui <- case lookup " Project Unit Id" info of
91+ Nothing -> return " "
92+ Just pui -> do
93+ let prefix = " ghc-" ++ prettyShow ver ++ " -"
94+ unless (L. isPrefixOf prefix pui) $
95+ die tracer $ prefix ++ " is not prefix of Project Unit Id: " ++ pui
96+
97+ return pui
9698
9799 return GhcInfo
98100 { ghcPath = ghc
You can’t perform that action at this time.
0 commit comments