Skip to content

Conversation

@jhrcek
Copy link
Contributor

@jhrcek jhrcek commented Oct 8, 2019

Description of the change

I fixed relatively conservative subset of hlint warnings which IMO make the code more lightweight/readable by removing some redundancies (unnecessary parens, import aliases, using better functions where available etc.)

Checklist:

  • Added the change to the "Unreleased" section of the changelog
  • Added some example of the new feature to the README
  • Added a test for the contribution (if applicable)


-- | Given a list of filepaths, find the one with the least folders
findRootPath :: [System.IO.FilePath] -> Maybe System.IO.FilePath
findRootPath paths
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The only change not suggested by hlint, but I couldn't resist to simplify this to more readable one-liner..

Copy link
Member

@f-f f-f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@jhrcek jhrcek merged commit 9737c63 into master Oct 8, 2019
@mergify mergify bot deleted the fixHlintWarnings branch October 8, 2019 07:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants