You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code only works correctly if called in the root directory of the repository. It's a common practice to develop more than one cabal package in a single repository by placing each package in a sub-directory. For that we must support detection of the VCS in sub-directories.
getVCS::IO (MaybeRepoType)
getVCS =
doesDirectoryExist ".hg">>=\x0 ->if x0
thenreturn (JustMercurial)
else doesDirectoryExist ".git">>=\x1 ->return$if x1
thenJustGitelseNothing{- TODO if pwd is not call getVCS on ".." -}
The text was updated successfully, but these errors were encountered:
The generated
PkgInfo
modules check for the revision control system with the following code.This code only works correctly if called in the root directory of the repository. It's a common practice to develop more than one cabal package in a single repository by placing each package in a sub-directory. For that we must support detection of the VCS in sub-directories.
The text was updated successfully, but these errors were encountered: