Skip to content

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

Description

@asakul

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions