Skip to content

Commit

Permalink
fix conflicts
Browse files Browse the repository at this point in the history
  • Loading branch information
ulysses4ever committed Jul 14, 2023
1 parent e08b465 commit 42a6936
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 73 deletions.
51 changes: 0 additions & 51 deletions cabal-install/src/Distribution/Client/Setup.hs
Original file line number Diff line number Diff line change
Expand Up @@ -72,15 +72,11 @@ import Distribution.Client.IndexUtils.IndexState
import qualified Distribution.Client.Init.Types as IT
import qualified Distribution.Client.Init.Defaults as IT
import Distribution.Client.Targets
<<<<<<< HEAD
( UserConstraint, readUserConstraint )
=======
( UserConstraint
, readUserConstraint
)
import Distribution.Deprecated.ParseUtils (parseSpaceList, parseTokenQ)
import Distribution.Deprecated.ReadP (readP_to_E)
>>>>>>> 95f48ad71 (Fix parsing of password-command option (#6268))
import Distribution.Utils.NubList
( NubList, toNubList, fromNubList)

Expand Down Expand Up @@ -2012,53 +2008,6 @@ defaultUploadFlags = UploadFlags {
}

uploadCommand :: CommandUI UploadFlags
<<<<<<< HEAD
uploadCommand = CommandUI {
commandName = "upload",
commandSynopsis = "Uploads source packages or documentation to Hackage.",
commandDescription = Nothing,
commandNotes = Just $ \_ ->
"You can store your Hackage login in the ~/.config/cabal/config file\n"
++ relevantConfigValuesText ["username", "password", "password-command"],
commandUsage = \pname ->
"Usage: " ++ pname ++ " upload [FLAGS] TARFILES\n",
commandDefaultFlags = defaultUploadFlags,
commandOptions = \_ ->
[optionVerbosity uploadVerbosity
(\v flags -> flags { uploadVerbosity = v })

,option [] ["publish"]
"Publish the package instead of uploading it as a candidate."
uploadCandidate (\v flags -> flags { uploadCandidate = v })
(noArg (Flag IsPublished))

,option ['d'] ["documentation"]
("Upload documentation instead of a source package. "
++ "By default, this uploads documentation for a package candidate. "
++ "To upload documentation for "
++ "a published package, combine with --publish.")
uploadDoc (\v flags -> flags { uploadDoc = v })
trueArg

,option ['u'] ["username"]
"Hackage username."
uploadUsername (\v flags -> flags { uploadUsername = v })
(reqArg' "USERNAME" (toFlag . Username)
(flagToList . fmap unUsername))

,option ['p'] ["password"]
"Hackage password."
uploadPassword (\v flags -> flags { uploadPassword = v })
(reqArg' "PASSWORD" (toFlag . Password)
(flagToList . fmap unPassword))

,option ['P'] ["password-command"]
"Command to get Hackage password."
uploadPasswordCmd (\v flags -> flags { uploadPasswordCmd = v })
(reqArg' "PASSWORD" (Flag . words) (fromMaybe [] . flagToMaybe))
]
}
=======
uploadCommand =
CommandUI
{ commandName = "upload"
Expand Down
22 changes: 0 additions & 22 deletions cabal-install/src/Distribution/Deprecated/ParseUtils.hs
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,11 @@
-- couple others. It has the parsing framework code and also little parsers for
-- many of the formats we get in various @.cabal@ file fields, like module
-- names, comma separated lists etc.
<<<<<<< HEAD

-- This module is meant to be local-only to Distribution...

{-# OPTIONS_HADDOCK hide #-}
{-# LANGUAGE Rank2Types #-}
module Distribution.Deprecated.ParseUtils (
LineNo, PError(..), PWarning(..), locatedErrorMsg, syntaxError, warning,
runP, runE, ParseResult(..), parseFail, showPWarning,
Field(..), lineNo,
FieldDescr(..), readFields,
parseHaskellString, parseTokenQ,
parseOptCommaList,
showFilePath, showToken, showFreeText,
field, simpleField, listField, listFieldWithSep, spaceListField,
newLineListField,
liftField,
readPToMaybe,

fieldParsec, simpleFieldParsec,
listFieldParsec,
commaListFieldParsec,
commaNewLineListFieldParsec,

UnrecFieldParser,
=======
module Distribution.Deprecated.ParseUtils
( LineNo
, PError (..)
Expand Down Expand Up @@ -79,7 +58,6 @@ module Distribution.Deprecated.ParseUtils
, commaListFieldParsec
, commaNewLineListFieldParsec
, UnrecFieldParser
>>>>>>> 95f48ad71 (Fix parsing of password-command option (#6268))
) where

import Distribution.Client.Compat.Prelude hiding (get)
Expand Down

0 comments on commit 42a6936

Please sign in to comment.