Skip to content

Commit 39d3f61

Browse files
committed
Stop using error in hiddenPackageSuggestion
1 parent db805a5 commit 39d3f61

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal

1 file changed

+1
-1
lines changed

plugins/hls-cabal-plugin/src/Ide/Plugin/Cabal/CabalAdd.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ hiddenPackageSuggestion diag = getMatch (msg =~ regex)
221221
getMatch (_, _, _, []) = []
222222
getMatch (_, _, _, [dependency, _, cleanVersion, "", "", ""]) = [(dependency, cleanVersion)]
223223
getMatch (_, _, _, ["", "", "", dependency, _, cleanVersion]) = [(dependency, cleanVersion)]
224-
getMatch (_, _, _, _) = error "Impossible pattern matching case"
224+
getMatch (_, _, _, _) = []
225225

226226
command :: Recorder (WithPriority Log) -> CommandFunction IdeState CabalAddCommandParams
227227
command recorder state _ params@(CabalAddCommandParams {cabalPath = path, verTxtDocId = verTxtDocId, buildTarget = target, dependency = dep, version = mbVer}) = do

0 commit comments

Comments
 (0)