Using alex/happy with Cabal

后端 未结 2 1334
闹比i
闹比i 2021-02-19 11:31

I\'m writing a compiler for a class I\'m taking. The class isn\'t specifically Haskell but I\'m using Haskell to write my compiler and interpreter. I have a cabal package setup

2条回答
  •  一生所求
    2021-02-19 11:38

    For Warren Harris and others like him (and myself) that may come along later, other-modules needs to be set to a list of module names that (I guess?) are expected to be built by the tools listed in build-tools.

    So, in my case, the relevant sections of my .cabal file ended up looking like this:

    build-tools:         alex, happy
    other-modules:       Language.Heidi.Parser,
                         Language.Heidi.Lexer
    

提交回复
热议问题