Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ghc to version 9. Add XDG support. #98

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

exorcist365
Copy link

title says it all.

Copy link
Contributor

@joachifm joachifm left a comment

Choose a reason for hiding this comment

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

Thank you.

I'd strongly prefer for this to be separate PRs: one for the version bump and one for the feature. It's not a huge deal here, but in general the bar is much lower for integrating a simple version bump on its own than if it has to be taken together with code changes/features.

I added some minor nits for you to consider.

@@ -504,7 +504,7 @@ commands = [
MPD.previous :: Vimus ()

, command "toggle" "toggle between play and pause" $ do
MPDE.toggle :: Vimus ()
MPD.toggle :: Vimus ()
Copy link
Contributor

Choose a reason for hiding this comment

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

This change appears unrelated to the PR.

Copy link
Author

Choose a reason for hiding this comment

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

When set to MPDE it doesn't compile because the MPDE module does not have the toggle function, I changed it so I could compile and then forgot about it

-- overwrite possible config errors
mvwaddstr inputWindow 0 0 "type :quit to exit, :help for help"
return ()
mvwaddstr inputWindow 0 0 "type :quit to exit, :help for help"
Copy link
Contributor

Choose a reason for hiding this comment

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

This change appears unrelated to the PR

Copy link
Author

Choose a reason for hiding this comment

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

I have no idea how this happened, will indent back

Copy link
Author

Choose a reason for hiding this comment

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

I have no idea how this happened, will indent back

@@ -193,18 +195,27 @@ run host port ignoreVimusrc = do
-- load default mappings
Command.runCommand "runtime default-mappings"

-- source ~/.vimusrc
configHome <- liftIO $ getEnv "XDG_CONFIG_HOME"
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't feel too strongly about it but this could do with some golfing to make it a little more succinct/easier to follow. Like: take a list of alternatives and try each in order.

Copy link
Author

Choose a reason for hiding this comment

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

the only other way i can think of doing this is using the xdgdirectories thing but i have to add an extra package for that i think

Copy link
Author

Choose a reason for hiding this comment

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

also sorry for the late responses but july and august were heavy months for me

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.

None yet

2 participants