Skip to content

Commit

Permalink
Qualify asum call to ensure it compiles in ghc8107
Browse files Browse the repository at this point in the history
Qualify `asum` call to ensure it compiles in ghc8107
  • Loading branch information
palas committed Oct 10, 2024
1 parent 69e3f81 commit 6131449
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cardano-cli/src/Cardano/CLI/EraBased/Options/StakePool.hs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import Cardano.CLI.EraBased.Options.Common
import Cardano.CLI.Read (readSafeHash)
import qualified Cardano.Crypto.Hash as L

import qualified Data.Foldable as F
import Options.Applicative hiding (help, str)
import qualified Options.Applicative as Opt

Expand Down Expand Up @@ -73,15 +74,15 @@ pStakePoolMetadataHashCmd =

pPoolMetadataSource :: Parser Cmd.StakePoolMetadataSource
pPoolMetadataSource =
asum
F.asum
[ Cmd.StakePoolMetadataFileIn <$> pPoolMetadataFile
, Cmd.StakePoolMetadataURL
<$> pUrl "pool-metadata-url" "URL pointing to the JSON Metadata file to hash."
]

pPoolMetadataHashGoal :: Parser Cmd.StakePoolMetadataHashGoal
pPoolMetadataHashGoal =
asum
F.asum
[ Cmd.CheckStakePoolMetadataHash <$> pExpectedStakePoolMetadataHash
, Cmd.StakePoolMetadataHashToFile <$> pOutputFile
]
Expand Down

0 comments on commit 6131449

Please sign in to comment.