| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
No longer needed.
|
| |
|
|
|
| |
merge before-ghci -> before-ghci-branch-merged into the ghc
(non-compiler) parts of the tree.
|
| |
|
|
|
|
| |
- fix copyrights
- remove some unused imports
- comment formatting fixes
|
| |
|
|
|
| |
Added a few -#includes to eliminate warnings from gcc
(*please merge*)
|
| |
|
|
|
| |
Adding a bunch of `unsafe's to foreign imports. TODO: Could somebody
verify that declaring shutdownHaskellAndExit as unsafe is OK?
|
| |
|
|
| |
Removed -fcompiling-prelude flag (now removed from compiler)
|
| |
|
|
| |
Add -fcompiling-prelude so as to get right dependencies in the interface.
|
| |
|
|
| |
Changes needed to support foreign export (dynamic) in combined mode.
|
| |
|
|
|
|
|
|
| |
Make foreign import work in combined mode:
-- Allow interpreter to do ccall primops even in combined mode
-- Implement hugsprimMkIO in combined mode, so as to wrap up a
an IO value created by Hugs in a form compatible with GHC's IO
representation.
|
| |
|
|
|
|
|
| |
In hugsprimRunIO_toplevel, use catchException instead of catch.
At least exceptions can then be caught, although Hugs then goes on
to die with an assertion failure in unblockAsyncExceptionszh_ret_entry,
probably caused by wrongly entering it twice in immediate succession.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
More bug fixes resulting from trying to load small programs into Hugs
using the GHC Prelude:
-- Better handling of kinds on class method types. It's still a kludge
(I reckon) but works well enough to correctly handle methods in
Monad and Functor. See comment in startGHCClass() in interface.c.
-- Add hugsprimReadField and hugsprimShowField.
-- Make error be exported from the Prelude. For some reason, PrelErr.hi
doesn't give a signature for error, so we have to fake it by copying
that of hugsprimError.
-- Handle fixity declarations read from interfaces.
-- Set nameListMonad so that list comprehensions can be translated.
|
| |
|
|
| |
Add hugsprimError, hugsprimCompAux.
|
| |
|
|
| |
Add hugsprimPmFail.
|
| |
|
|
|
| |
Make hugsprimUnpackString :: Addr -> String available to Hugs' desugarer
in both modes.
|
|
|
A module for use with the combined GHC-Hugs system. Contains various
small helper functions referred to which Hugs' desugarer emits references.
The same functions are implemented in ghc/interpreter/lib/Prelude.hs
for use in standalone Hugs. The two versions should correspond exactly.
|