Compile single file within cabal-dev environment

It seems so trivial, but I haven't been able to do it. I'm trying to compile a single .hs file whose dependencies are available in a cabal-dev environment. For example, at my website repo [1] you can see that I have a ``wunki.hs`` which uses Hakyll [2] to create my website. I have installed Hakyll with cabal-dev. But now I want to ``ghc --make wunki.hs`` with that cabal-dev environment. Is this possible? [1]: https://github.com/wunki/www.wunki.org [2]: https://github.com/jaspervdj/hakyll -- Petar Radošević, Programmer wunki.org | @wunki

I think cabal-dev is meant to work with actual cabal packages. So, no
cabal file, no cabal-dev build
virthualenv (note the spelling) will probably work a lot better for
you. Actually, I'm starting to like it better for pretty much
everything.
On Sun, Nov 20, 2011 at 6:29 AM, Petar Radosevic
It seems so trivial, but I haven't been able to do it. I'm trying to compile a single .hs file whose dependencies are available in a cabal-dev environment.
For example, at my website repo [1] you can see that I have a ``wunki.hs`` which uses Hakyll [2] to create my website. I have installed Hakyll with cabal-dev. But now I want to ``ghc --make wunki.hs`` with that cabal-dev environment.
Is this possible?
[1]: https://github.com/wunki/www.wunki.org [2]: https://github.com/jaspervdj/hakyll -- Petar Radošević, Programmer wunki.org | @wunki
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners

David McBride wrote on Sun, Nov 20, 2011 at 06:41:55AM -0500:
I think cabal-dev is meant to work with actual cabal packages. So, no cabal file, no cabal-dev build
virthualenv (note the spelling) will probably work a lot better for you. Actually, I'm starting to like it better for pretty much everything.
That turned out the work perfectly. Thank you for the tip! -- Petar Radošević, Programmer wunki.org | @wunki
participants (2)
-
David McBride
-
Petar Radosevic