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

View File

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