- 02 Apr, 2002 5 commits
-
-
simonmar authored
oops, accidentally committed some untested (and non-working) cleanups in the last commit. This commit fixes it up again. (fixes the ByteCodeGen panic in GHCi on the HEAD)
-
simonmar authored
Add my build.mk file as a sample, and point to it in the comments at the top of config.mk.
-
simonpj authored
Comments
-
simonmar authored
- Reverse the meaning of the *-prefix in the :module and :browse commands: '*Foo' now means the full contents of Foo, whereas just 'Foo' means Foo's exports only. This seems more intuitive to me, but the downside is that ':m Foo' doesn't do the same thing in GHC as Hugs (you have to say ':m *Foo' to get Hugs's behaviour). - Update the help text
-
simonmar authored
The hPutBuf bug looks to be in 5.00 as well as 4.08 - so enable the workaround on GHC <= 5.00. Hopefully should fix bootstrapping problems on Alpha.
-
- 01 Apr, 2002 11 commits
-
-
panne authored
Sigbjorn's last optimization (checking for -mno-cygwin only for mingw32 targets) kicked out -O from the default SRC_CC_OPTS. Apart from a minor performance hit for some parts of GHC, it yields a GHCi which can't load HSbase_cbits.o because `lstat' is unknown, at least on SuSE 7.3. A little investigation showed the rather arcane reason: lstat and friends are inline functions and therefore not in libc.so, only in its static counterpart. Normally this is not a problem at all, but the CPP INLINE trickery in fptools/libraries/base/cbits/PrelIOUtils.c manages to get a reference to lstat into PrelIOUtils.o if -O is not given. %-} A similar problem exists for fstat, too. Simple solution: Re-add -O to SRC_CC_OPTS, simplifying configure.in a bit on the way.
-
simonpj authored
Use hasktags for the HSTAGS_PGM
-
panne authored
Fixed imports for GHC >= 5.03
-
panne authored
"warning: unused variable"-police
-
simonpj authored
Comments
-
simonpj authored
wibble
-
simonpj authored
------------------------------------ Change the treatment of the stupid context on data constructors ----------------------------------- Data types can have a context: data (Eq a, Ord b) => T a b = T1 a b | T2 a and that makes the constructors have a context too (notice that T2's context is "thinned"): T1 :: (Eq a, Ord b) => a -> b -> T a b T2 :: (Eq a) => a -> T a b Furthermore, this context pops up when pattern matching (though GHC hasn't implemented this, but it is in H98, and I've fixed GHC so that it now does): f (T2 x) = x gets inferred type f :: Eq a => T a b -> a I say the context is "stupid" because the dictionaries passed are immediately discarded -- they do nothing and have no benefit. It's a flaw in the language. Up to now I have put this stupid context into the type of the "wrapper" constructors functions, T1 and T2, but that turned out to be jolly inconvenient for generics, and record update, and other functions that build values of type T (because they don't have suitable dictionaries available). So now I've taken the stupid context out. I simply deal with it separately in the type checker on occurrences of a constructor, either in an expression or in a pattern. To this end * Lots of changes in DataCon, MkId * New function Inst.tcInstDataCon to instantiate a data constructor I also took the opportunity to * Rename dataConId --> dataConWorkId for consistency. * Tidied up MkId.rebuildConArgs quite a bit, and renamed it mkReboxingAlt * Add function DataCon.dataConExistentialTyVars, with the obvious meaning
-
simonpj authored
Comments
-
simonpj authored
Split out FastMutInt separately
-
simonpj authored
Comments
-
simonpj authored
Import wibbles
-
- 29 Mar, 2002 3 commits
-
-
sof authored
Front end for External Core. Initial go at implementing a Core front end (enabled via -fcore); work in progress (renamer is currently not willing to slurp in & resolve imports.)
-
krasimir authored
Latest Win32 implementation allows dynamic loading only for *.dll libraries. This commit add checking for *.drv libraries (drivers). This allows loading of winspool.drv needed for ObjectIO
-
krasimir authored
Hack hs_libraries package info for HSobjectio[1,2,3,4]
-
- 28 Mar, 2002 7 commits
-
-
simonmar authored
In lookupTopBndrRn, if we're in an interface file, then create the binder in the cache with the correct Module (inc. package name) rather than making a vanilla module as we do currently. This helps to get the package names right in names from interfaces that we've read via checkOldIface (ie. "skipped" modules), and fixes a bug to do with unnecessary version bumping and recompilation. (Simon P.J. will add a better comment later) MERGE TO STABLE
-
simonpj authored
Another readHoleResult glitch (fixes rn003)
-
sof authored
running binary-dist without having BIN_DIST set is now a no-no, I believe.
-
sof authored
recognise new cygwin moniker reported by config.guess
-
sof authored
cygwin-specific path mangling of CWD no longer reqd
-
simonmar authored
The test suite wins again: re-enable empty contexts in data declarations.
-
stolz authored
posix/DLPrim now uses configure to check for RTLD_LOCAL.
-
- 27 Mar, 2002 4 commits
-
-
simonmar authored
Sigh, recompilation checking in --make mdoe has been badly broken for well, probably ever. The problem is that in GHCi mode there's a restriction on the use of object files, namely that an object file may only depend on other up-to-date object files in order to be up-to-date itself, because we don't have support for linking object code to interpreted code. Unfortunately we were applying this restriction to --make compilations too, with the result that far too much recompilation was happening. MERGE TO STABLE
-
simonmar authored
Update the comment about how to add a new primop.
-
simonpj authored
More validity checking, esp for existential ctxt on data cons
-
simonpj authored
Comments and tracing only
-
- 26 Mar, 2002 10 commits
-
-
sof authored
TEXT_BEFORE_HEAP & cygwin: same as for mingw
-
sof authored
initDefaultHandlers(): siginterrupt() not supported w/ cygwin
-
sof authored
re-add way 'p' to GhcLibWays
-
sof authored
mingw32_TARGET_OS -> mingw32_HOST_OS
-
sof authored
the platform-specific features to use to compile the compiler sources are dependent on the host, not the target platform
-
sof authored
only test for -mno-cygwin if the target is mingw32
-
simonpj authored
Fix readHoleResult bug
-
stolz authored
Add dlopen() and friends to package 'posix'. A configure-test for RTLD_NEXT is required. Record if -ldl is required in posix.conf.
-
simonmar authored
Make the closure types consecutive
-
simonmar authored
A couple of cleanups to the previous change: we should test TABLES_NEXT_TO_CODE rather than USE_MINIINTERPRETER to enable the MacOSX "plan C", and use structure field selection rather than array indexing to get the entry code ptr from the info table.
-