mirror of
https://github.com/commercialhaskell/stackage.git
synced 2026-01-29 23:50:27 +01:00
Update Haddock file refs
This commit is contained in:
parent
e0e64b4088
commit
33b2e1540a
@ -232,6 +232,7 @@ runTestSuite cabalVersion settings testdir docdir
|
|||||||
: "--hyperlink-source"
|
: "--hyperlink-source"
|
||||||
: "--html"
|
: "--html"
|
||||||
: "--hoogle"
|
: "--hoogle"
|
||||||
|
-- FIXME is this redundant with read-interface above?
|
||||||
: "--html-location=../$pkg-$version/"
|
: "--html-location=../$pkg-$version/"
|
||||||
: hfsOpts) dir
|
: hfsOpts) dir
|
||||||
let PackageName packageName' = packageName
|
let PackageName packageName' = packageName
|
||||||
|
|||||||
@ -309,15 +309,16 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
|
|||||||
(childDir </> "dist" </> "doc" </> "html" </> fpFromText name)
|
(childDir </> "dist" </> "doc" </> "html" </> fpFromText name)
|
||||||
(pbDocDir pb </> fpFromText namever)
|
(pbDocDir pb </> fpFromText namever)
|
||||||
|
|
||||||
{-
|
|
||||||
enewPath <- tryIO
|
enewPath <- tryIO
|
||||||
$ canonicalizePath
|
$ canonicalizePath
|
||||||
$ docdir </> package </> packageName' <.> "haddock"
|
$ pbDocDir pb
|
||||||
|
</> fpFromText namever
|
||||||
|
</> fpFromText name <.> "haddock"
|
||||||
case enewPath of
|
case enewPath of
|
||||||
Left _ -> return () -- print e
|
Left e -> warn $ tshow e
|
||||||
Right newPath -> atomicModifyIORef haddockFilesRef $ \hfs'
|
Right newPath -> atomically
|
||||||
-> ((package, newPath) : hfs', ())
|
$ modifyTVar sbHaddockFiles
|
||||||
-}
|
$ insertMap namever newPath
|
||||||
|
|
||||||
case (eres, pcHaddocks) of
|
case (eres, pcHaddocks) of
|
||||||
(Left e, ExpectSuccess) -> throwM e
|
(Left e, ExpectSuccess) -> throwM e
|
||||||
@ -345,7 +346,12 @@ singleBuild pb@PerformBuild {..} SingleBuild {..} =
|
|||||||
|
|
||||||
warn t = atomically $ modifyTVar sbWarningsVar (. (t:))
|
warn t = atomically $ modifyTVar sbWarningsVar (. (t:))
|
||||||
|
|
||||||
updateErrs exc =
|
updateErrs exc = do
|
||||||
|
log' $ concat
|
||||||
|
[ display (piName sbPackageInfo)
|
||||||
|
, ": "
|
||||||
|
, tshow exc
|
||||||
|
]
|
||||||
atomically $ modifyTVar sbErrsVar $ insertMap (piName sbPackageInfo) exc'
|
atomically $ modifyTVar sbErrsVar $ insertMap (piName sbPackageInfo) exc'
|
||||||
where
|
where
|
||||||
exc' =
|
exc' =
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user