Updates `userPrompt` in BrickMain to a more efficient version

This commit is contained in:
Arjun Kathuria 2022-07-10 09:50:58 +05:30
parent 2bd5a8fe1a
commit e9740d13fc
1 changed files with 6 additions and 6 deletions

View File

@ -525,12 +525,12 @@ set' bs input@(_, ListResult {..}) = do
PromptNo -> pure $ Left (prettyShow e)
where
userPrompt = L.toStrict $
B.toLazyText $
B.fromString " This Version of " <>
B.fromString (show tool) <>
B.fromString " you are trying to set is not installed.\n" <>
B.fromString " Would you like to install it first? [Y/N]: "
userPrompt = L.toStrict . B.toLazyText . B.fromString $
"This Version of "
<> show tool
<> " you are trying to set is not installed.\n"
<> "Would you like to install it first? [Y/N]: "
_ -> pure $ Left (prettyShow e)