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

Improve create Haskell file action #144

Merged
merged 3 commits into from Feb 5, 2017

Conversation

zjhmale
Copy link
Contributor

@zjhmale zjhmale commented Feb 4, 2017

Based on #70 and #74.

  • Add module prefix in MODULE_DECLARATION for new created Haskell modules.
  • Support creating Haskell file with module prefixes. e.g. you can type xxx.xxx.xxx in the New Haskell File dialog.
  • This time, you can create Haskell file everywhere, there will no issues again which discussed at Refactor #74.

screenshot

@rikvdkleij
Copy link
Owner

Cool it also it also works for test directory!

@zjhmale
Copy link
Contributor Author

zjhmale commented Feb 5, 2017

Yes 😃

@rikvdkleij rikvdkleij merged commit da5a67a into rikvdkleij:master Feb 5, 2017
@rikvdkleij
Copy link
Owner

Thanks!

.map(_.getPath)
.find(path.startsWith)
.map(s => if (s != path) {
path.replace(s + File.separator, "").split(File.separator).toList
Copy link
Contributor

Choose a reason for hiding this comment

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

Oh no! This code is not working on Windows!
You bad bad!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ice1000 Sorry 😅

Copy link
Contributor

Choose a reason for hiding this comment

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

🌘

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

3 participants