ndmitchell / debug

Haskell library for debugging
BSD 3-Clause "New" or "Revised" License
122 stars 7 forks source link

Replace case with maybe (hlint) #63

Closed dwijnand closed 5 years ago

dwijnand commented 5 years ago
./src/Debug/Util.hs:31:25: Suggestion: Replace case with maybe
Found:
  case stripInfixEnd "_" str of
      Just s -> fst s
      Nothing -> str
Perhaps:
  maybe str fst (stripInfixEnd "_" str)
ndmitchell commented 5 years ago

Thanks!