50 Commits

Author SHA1 Message Date
Brian Victor
c0b4642cbc update plugins to support GHC >= 7.2 (via conditional compilation) 2012-03-19 18:20:05 +00:00
Don Stewart
c90676d8f7 remove a warning 2010-10-18 18:09:09 +00:00
Jeremy Shaw
29547f0f81 two fixes for chasing dependencies via lookupPkg
1. union needs to add each package *three* times

    i.   with out the version number
    ii.  with the version number
    iii. with the full installed package id (new)

 2. lookupPkg needs to avoid getting caught in a loop by circular
 dependencies
2010-10-18 04:03:21 +00:00
Don Stewart
b8e8809186 Replace custom mktemp implementation in favor of one now in base 2010-09-23 21:22:06 +00:00
Don Stewart
420a1644ce Strip out two dead package api modules 2010-09-23 20:11:04 +00:00
Don Stewart
bc895a28f9 Remove the two obsolete package.conf parsers 2010-09-23 20:03:11 +00:00
Don Stewart
f56ab96f34 Make ascii clean and ghci clean, bump 2010-09-23 19:43:18 +00:00
Manuel M T Chakravarty
838f8c0aca Adapt to work with GHC 6.12
- Adapted the package to work with GHC 6.12
- Plugins that depend on the old base3 are currently
  not correctly loaded as the plugin loaded misses
  the dependence on syb (leading to unresolved symbols)
- Cleaned up most of the testsuite (there are still
  some outstanding failures, of which only one
  demonstrates a bug in the plugins library as far
  as I can see — see previous bullet point)
- Cleaned out a little cruft (but more could be done)
2010-09-22 05:10:19 +00:00
James Cook
67635f72b8 Fix mkTemp, et al. to handle the case where an X appears in the dir part of the template.
This happens quite often on Mac OS X in my experience.  $TMPDIR is set to a private location with the name apparently generated by some hashing algorithm.  I wouldn't be surprised if it is derived from the username somehow, as my accounts consistently wind up with 'X's in their $TMPDIR, on many systems.
2009-08-18 23:12:15 +00:00
alson
a0391e5cd3 More for GHC 6.10 2009-01-31 23:29:21 +00:00
alson
9d431c68a3 Updating for GHC 6.10 2009-01-31 23:16:26 +00:00
gbmvdd
77722b17bc fix-cabal-1.4-build
Hide conflicting imports of Distribution.Package.depends and packageName where necessary to allow hs-plugins to build against Cabal>=1.4.
2008-11-04 16:12:06 +00:00
jeremy
927cb18681 remove bogus calls to decode in loadDepends
decode was being called on the module names in loadDepends, however
these strings were not Z-coded. Most of the time decode just returns
the string unmodified, which is why this problem has not caused
widespread failure.
2008-08-24 23:49:48 +00:00
Sergei Trofimovich
d548687001 added support for --user package discovery
This patch allows run plugins, containig
import of --user installed packages. Useful
for lambdabot installation in $HOME.

package.conf are found by parsing `ghc-pkg list`
2008-08-20 12:55:16 +00:00
cgibbard
5e250e94d2 Fix some warnings. 2007-12-16 05:52:29 +00:00
cgibbard
b80977561c Remove Language.Hi in favour of using the ghc-api directly, fix to work with GHC 6.8.2.
This is still *very* kludgey, and it needs lots of work which I'm not
entirely prepared for, seeing as I really don't know anything about
the ghc-api and how things are supposed to fit together. It is quite
conceivable that the code could be simplified much further by someone who
actually understands the ghc-api, and there may be bugs related to the fact
that I don't actually know what some things do. However, this builds
and does appear to work. Most of the testsuite is passing.
2007-12-16 05:28:44 +00:00
bjorn
642bd3add6 GHC 6.6 includes the package name in symbol names. This means that loadPackage_ needs to know the package name. I added a loadPackage__ with a package name argument. I also added loadPackageFunction with is a convenience functions for loading a value from a package module. This is very useful in HaskellDB. 2007-08-29 14:26:57 +00:00
Benja Fallenstein
a1058e1ecb remove AltData.* from exposed-modules in plugins.cabal.hsx; remove a comment that talks about AltData 2007-03-23 00:04:42 +00:00
Lemmih
48e054cfd5 Ugly fix to an ugly problem. 2007-01-30 04:00:41 +00:00
Lemmih
9b3069cb3d Comment. 2007-01-29 03:20:59 +00:00
Lemmih
bc5726ccd2 Version handling wibbles. 2007-01-29 03:16:34 +00:00
lemmih
5d497a1c60 Hardcoding ["m","gmp"] is bad. We shouldn't link with any of the DLLs from a already linked package. 2006-01-25 10:45:40 +00:00
Lemmih
7856e250aa Remove AltData, yay. 2007-01-29 03:14:51 +00:00
lemmih
afc53152e9 AltData is pure evil. 2006-01-25 10:49:40 +00:00
Don Stewart
748afc256e make lookupSymbol threadsafe, so loading doesn't block all threads on systems without an IO manager thread (win32) 2006-10-23 02:38:44 +00:00
dons
a1b9782556 whitespace only 2006-06-21 05:13:53 +00:00
ulfn
ec3e63ef8d look for dynamic libraries when loading packages 2006-08-14 14:37:28 +00:00
dons
2ba550faa1 Truly random idents to foil #haskell games 2006-04-30 02:01:14 +00:00
boy
493be17566 strict file IO for make 2006-03-31 13:32:46 +00:00
dons
33c374fb75 Random name instead of 'v' 2006-04-10 00:25:00 +00:00
dons
3db2f02a2c comments, retab 2005-12-25 23:43:27 +00:00
dons
fc1a519459 Some debug ideas from bringert 2005-12-07 23:52:30 +00:00
lemmih
1acd230b94 Let new package dbs take precedence over old ones. 2005-09-23 16:12:24 +00:00
lemmih
1a2cbbf582 Export 'env' from System.Plugins.Env 2005-09-13 20:33:33 +00:00
lemmih
a7991e8cb6 Refactored System.Plugins.Load.loadFunction 2005-09-13 16:54:28 +00:00
Don Stewart
dfa37bb45f Add some documentation 2005-09-08 07:06:12 +00:00
Don Stewart
ab803f0975 More haddocks 2005-09-07 06:29:51 +00:00
Don Stewart
be506121a2 Better haddocks for Plugins.Make 2005-09-07 02:49:31 +00:00
Don Stewart
29ceaa76f6 improve haddock documentation 2005-09-04 03:27:56 +00:00
Don Stewart
c336af2b0e mv code back into src/. Kindly pointed out by Lemmih 2005-09-03 06:38:06 +00:00
Don Stewart
90d780cff8 Partially improve the cabalisation 2005-09-03 03:10:04 +00:00
lemmih
d380755047 Report the error when a process returns a non-zero exit code. 2005-08-25 18:46:10 +00:00
lemmih
5d2b4db2a8 Unload loaded code if 'resolveObjs' fail.
Keeping the erroneous code in memory will leave the system in an unusable state.
2005-08-24 18:43:46 +00:00
Don Stewart
fcc91a57ab warning police 2005-08-19 02:09:20 +00:00
Don Stewart
e59c59d3ea Make dependency on HSX *optional*. Use ./configure --enable-hsx to use it 2005-08-19 01:43:17 +00:00
dons
5dbfa70f74 More fixes for 605, and adjust expected output 2005-08-19 01:04:43 +00:00
dons
6c122b67c4 Fixes to compile with 6.5 2005-08-19 00:52:51 +00:00
Don Stewart
ddebf95148 And the rest, oops 2005-08-19 00:47:47 +00:00
Don Stewart
bbd6456dff regen 2005-08-18 05:16:12 +00:00
Don Stewart
46b07ed75c Mv plugins -> src 2005-08-18 05:05:19 +00:00