semantic icon indicating copy to clipboard operation
semantic copied to clipboard

semantic-ast doesn't have an associated executable

Open Boarders opened this issue 2 years ago • 1 comments

In the README for semantic-ast here it mentions how to use the executable in app/Main.hs to do Haskell codegen for the given grammar. However this executable is not defined in the semantic-ast cabal file. I was wondering if this was just an oversight or some deliberate change or if there is something obvious I am missing about how to create this executable?

Happy to make a PR to add it to the cabal file if that would be welcome.

Boarders avatar Dec 06 '23 22:12 Boarders

It's not just about declaring Main.hs in the cabal file. The source code of Main.hs is very much integrated with Bazel. Bazel is not necessary and should be optional. Also it will automatically run ormulu on the generate code where you might want no formatting or run your own formatter.

flip111 avatar Apr 20 '24 10:04 flip111