Bringing hs-plugins up to date
jeremy at n-heptane.com
Wed Mar 21 16:36:11 CET 2012
Sorry for now followup up on the list properly. (I did, but the message got
bonged due to the attachment being too large).
I have a working (for me) version here:
darcs get http://src.seereason.com/plugins/
It has the essential fixes, plus some other cleanup. If dons fails to
respond, I will eventually do a hostile take over and upload to a working
version to hackage. (He has expressed to me in the past that he has little
interest in maintaining plugins anymore).
On Wed, Mar 21, 2012 at 10:26 AM, Bin Jin <bjin1990 at gmail.com> wrote:
> After viewing the source-code, I find that the methods from GHC module
> eventually evaluates
> defaultDynFlags (in initGhcMonad). It seems that obtain a Setting is
> the only working way.
> On Wed, Mar 21, 2012 at 10:47 PM, Bin Jin <bjin1990 at gmail.com> wrote:
> > how about getSessionDynFlags from GHC module, though it runs in Ghc
> > anyone knows the changes to GHC API?
> > --Bin
> > On Tue, Mar 20, 2012 at 3:57 AM, Ben Gamari <bgamari.foss at gmail.com>
> >> On Mon, 19 Mar 2012 14:28:57 -0500, Jeremy Shaw <jeremy at n-heptane.com>
> >> > Does this actually work for you? It builds for me, but when
> >> > is called, it fails because the 'undefined' is apparently actually
> >> > evaluated in GHC 7.4.1.
> >> >
> >> Hmm, frankly this fix was to get another package dependent on plugins to
> >> compile (https://github.com/colah/ImplicitCAD). The program runs
> >> evaluating undefined, but I suspect this is just because I haven't hit
> >> the relevant codepath.
> >> After a fairly brief look at the relevant documentation, I must say I
> >> don't see any easy solution to this. The undefined in question is a
> >> DynFlags. It seems that DynFlags.defaultDynFlags can give us a DynFlags,
> >> but unfortunately, it needs a Settings value (at least in 7.4), which
> >> has no obvious. It seems the correct way to do this is with
> >> parseDynamicFlags but, alas, this too requires a DynFlags.
> >> Cheers,
> >> - Ben
> >> _______________________________________________
> >> Libraries mailing list
> >> Libraries at haskell.org
> >> http://www.haskell.org/mailman/listinfo/libraries
> Libraries mailing list
> Libraries at haskell.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libraries