separating the executive from the library for reuse by other packages#1
separating the executive from the library for reuse by other packages#1GuillaumedeVolpiano wants to merge 1 commit intogentoo-haskell:mainfrom
Conversation
|
I had been considering splitting Which parts of |
|
This is the line I have Actually probably only need MatchMode(Matching). If it's too much of a bother, I can also add a similar process in GHRB/IO/Utils.hs. An issue we're going to face is to have cabal behave nicely with a library that would be installed locally but that is not on hackage. I'm not sure how to add it to a cabal file without a cabal project. |
You can do this with |
|
Right. My issue was with the ebuild actually l I'd sorted it out exactly as you recommended. It's running now, still some things to tweak but it works. |
@hololeap : I was thinking of adding a possibility to use revdep-scanner with random-rebuild, to check that everything goes fine when we bump versions on a widely used package (looking at you, dev-haskell/data-default). And I was thinking that rather than running the executable, it might be better to use the core functions, so I separated your code between executable and library.
I see that my fixers went a little wild on Main.hs, so if it's of interest, I'll redo the Main.hs part in a cleaner way.