Skip to content

Commit

Permalink
Add network-uri to cabal-doctest dependencies for Cabal-syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
jasagredo committed Jan 9, 2025
1 parent 6ecc50d commit df49e8a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cabal-syntax/src/Distribution/Utils/Path.hs
Original file line number Diff line number Diff line change
Expand Up @@ -564,8 +564,8 @@ data PkgConf
--
-- >>> import Network.URI
-- >>> import Data.Maybe
-- >>> import System.FilePath
-- >>> normalise $ uriPath $ fromJust $ parseURI "file+noindex:////./C:/foo.txt"
-- >>> import qualified System.FilePath.Windows as Windows
-- >>> Windows.normalise $ uriPath $ fromJust $ parseURI "file+noindex:////./C:/foo.txt"
-- "\\\\.\\C:/foo.txt"
asPosixPath :: FilePath -> FilePath
asPosixPath p =
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ ghcid-cli: ## Run ghcid for the cabal-install executable.

.PHONY: doctest
doctest: ## Run doctests.
cd Cabal-syntax && $(DOCTEST)
cd Cabal-syntax && $(DOCTEST) --build-depends=network-uri
cd Cabal-described && $(DOCTEST)
cd Cabal && $(DOCTEST)
cd cabal-install-solver && $(DOCTEST)
Expand Down

0 comments on commit df49e8a

Please sign in to comment.