문제

How do I make one executable in a cabal file depend on another in the same project?

I have a cabal file that builds two executables. One of the executables is a code generator that produces a Haskell source code file that the second executable depends on. How do I tell cabal to compile and run the first one before the second?

도움이 되었습니까?

해결책

They need to be separate projects - two .cabal files.

See e.g the gtk2hs preprocessor - http://hackage.haskell.org/package/gtk2hs-buildtools

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top