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

Haskell code generation results in unbuildable source for certain input DDL filenames #312

Open
jtdaugherty opened this issue Mar 16, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@jtdaugherty
Copy link
Member

I used daedalus compile-hs on an input file called MDM-2.4.ddl. That succeeded in generating a parser source directory, but when I attempted to build it, I got this error:

Errors encountered when parsing cabal file hsout/hsout.cabal:

hsout/hsout.cabal:14:36: error:
unexpected '-'
expecting white space, ",", "\"" or end of input

   13 |   default-language:    Haskell2010
   14 |   other-modules:       Daedalus,MDM-2.4
      |                                    ^

It appears that input filenames containing dashes (or maybe even dots) might need to be normalized to underscore or something like that to avoid this problem.

@jtdaugherty jtdaugherty added the bug Something isn't working label Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant