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

fltkhs-fluidtohs generates incorrect module names for nested modules #165

Open
asakul opened this issue Jun 20, 2020 · 0 comments
Open

fltkhs-fluidtohs generates incorrect module names for nested modules #165

asakul opened this issue Jun 20, 2020 · 0 comments

Comments

@asakul
Copy link

asakul commented Jun 20, 2020

Suppose that I keep all my UI-related files in some directory like "app/MyApp/UI/MainWindow.fl". I'm calling fltkhs-fluidtohs:

stack exec -- fltkhs-fluidtohs -o app/MyApp/UI app/MyApp/UI/MainWindow.fl

It generates app/MyApp/UI/MainWindow.hs which contains incorrect module header:

module MainWindow where

which, of course, fails to compile:

File name does not match module name:
Saw: ‘MainWindow’
Expected: ‘MyApp.UI.Fltk.MainWindow’

Now, I understand that it might be tricky to detect full module name, so if it's not possible, maybe another command line switch can be added which will override module name in the header? Or am I missing something?

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

No branches or pull requests

1 participant