[Haskell-beginners] Compile single file within cabal-dev environment

David McBride toad3k at gmail.com
Sun Nov 20 12:41:55 CET 2011


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 <petar at wunki.org> wrote:
> 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 at haskell.org
> http://www.haskell.org/mailman/listinfo/beginners
>
>



More information about the Beginners mailing list