snapframework / snap

Top-level package for the official Snap Framework libraries, includes the snaplets API as well as infrastructure for sessions, auth, and templates.
http://snapframework.com/
BSD 3-Clause "New" or "Revised" License
455 stars 68 forks source link

-fhint flag does not work with cabal-dev #19

Closed ozataman closed 12 years ago

ozataman commented 12 years ago

Currently, snap requires you compile with -fhint to enable devel mode. I know of no way to get this to work with cabal-dev. In my opinion, this is unacceptable. My reasons are:

The current workaround is to clone snap to a local repo, tweak the default -fhint setting and do cabal-dev add-source.

ozataman commented 12 years ago

With recent changes to cabal-dev, the following flag passing method now mitigates this issue:

--flags="-fhint"

the final example command being:

cabal-dev install snap --flags="-fhint".

I will close the ticket once I am confident this method works.

ozataman commented 12 years ago

cabal-dev has now fixed this issue and as of version 0.9, this is the best way to enable snap devel mode:

cabal-dev install snap -fhint