1. 28 May, 2001 7 commits
    • simonmar's avatar
      [project @ 2001-05-28 13:57:19 by simonmar] · 2e63bea6
      simonmar authored
      When we auto-load a module because the user typed a qualified name at
      the prompt, we better not auto-load a home interface (because we won't
      have the code to go with it).
      
      So, introduce a new constructor in the WhereFrom datatype, namely
      ImportByCmdLine for these auto-imports, and make findAndReadIface fail
      if it tries to load a home interface by this route.
      
      ToDo: GHCi should *never* demand-load a home interface under any
      circumstances, but we don't have an ASSERT for this yet.
      2e63bea6
    • simonmar's avatar
      [project @ 2001-05-28 12:56:35 by simonmar] · 15cf6d3b
      simonmar authored
      Change the GHCi monad from type
      
      	GHCiState -> IO (GHCiState, a)
      to
      	IORef GHCiState -> IO a
      
      to avoid losing recent changes to the state when we receive an
      exception (which would normally be harmless, except that the state
      isn't purely functional: it must match some state kept by the RTS's
      dynamic linker).  Asynchonous exceptions could still cause us some
      difficulty.
      15cf6d3b
    • simonpj's avatar
      [project @ 2001-05-28 11:42:56 by simonpj] · 5a023eed
      simonpj authored
      Wibble for scoped type variables
      5a023eed
    • sof's avatar
      [project @ 2001-05-28 07:13:54 by sof] · 63ae274a
      sof authored
      get rid of some more cpp warnings
      63ae274a
    • sof's avatar
      [project @ 2001-05-28 05:52:55 by sof] · d08fd403
      sof authored
      de-ramble previous commit
      d08fd403
    • sof's avatar
      [project @ 2001-05-28 03:31:19 by sof] · 4cef3202
      sof authored
      Misc minor changes to integrate GHC a little bit better on Win32 platforms.
      Specifically, the commit does the following (assuming you've configured
      fptools/ with the option --enable-minimal-unix-deps on a mingw platform):
      
       * when GHC uses System.system, it expects an MSDOS command processor to
         interpret the command. This implies that 'normal' UNIX shell utils will
         no longer be used, but substituted with MSDOS equivalents.
       * the GHC backend relies on gcc and perl to handle .s/.hc/.o/.a files. GHC
         will now assume that these all live in one 'tool directory', making it
         easier to bundle these backend tools with GHC.
      
      The upshot of these changes is that it is now possible for the user not to
      have to install cygwin prior to installing GHC (as the upcoming ghc-win32
      binary release will prove).
      4cef3202
    • sof's avatar
      [project @ 2001-05-28 03:17:03 by sof] · 8bbf522b
      sof authored
      Avoid the use of Posix when compiling for target i386-unknown-mingw32
      8bbf522b
  2. 27 May, 2001 4 commits
    • sof's avatar
      [project @ 2001-05-27 23:55:07 by sof] · b8c0cb8a
      sof authored
      Added GHC_TOUCHY_DIR and GHC_TOUCHY
      b8c0cb8a
    • sof's avatar
      [project @ 2001-05-27 23:53:47 by sof] · 13c670c3
      sof authored
      New configure script option, --enable-minimal-unix-deps, a Win32-specific
      option which lets you build a compiler that doesn't depend on cygwin tools
      to run. Well, you still need tools such as gcc and perl in the backend, but
      these don't have to be cygwin ports.
      13c670c3
    • sof's avatar
      [project @ 2001-05-27 06:08:24 by sof] · 4e8b2b5b
      sof authored
      wibble
      4e8b2b5b
    • sof's avatar
      [project @ 2001-05-27 05:00:08 by sof] · 72efdb49
      sof authored
      'flex' or 'lex' is required to compile up fptools/ (e.g., reqd in
      glafp-utils/sgmlverb). autoconf's standard macro AC_PROG_LEX just
      defaults to 'lex' if 'flex' isn't found, but doesn't actually
      check whether 'lex' is available along PATH.
      
      Added AC_PROG_LEX_STRICT, which extends AC_PROG_LEX by checking
      for the presence of 'lex' if 'flex' isn't found. It bails
      out with an error message if 'lex' cannot be found.
      72efdb49
  3. 25 May, 2001 16 commits
  4. 24 May, 2001 7 commits
    • dsyme's avatar
      [project @ 2001-05-24 15:10:19 by dsyme] · 508aae27
      dsyme authored
      Various changes for ILX backend and type-passing compilers, code reviewed by SimonPJ
      508aae27
    • simonpj's avatar
      [project @ 2001-05-24 15:01:33 by simonpj] · e266b13a
      simonpj authored
      wibble
      e266b13a
    • simonpj's avatar
      [project @ 2001-05-24 13:59:09 by simonpj] · cbdeae8f
      simonpj authored
      ------------------------------------------------------
      	More stuff towards generalising 'foreign' declarations
      	------------------------------------------------------
      
      This is the second step towards generalising 'foreign' declarations to
      handle langauges other than C.  Now I can handle
      
        foreign import dotnet type T
        foreign import dotnet "void Foo.Baz.f( T )" f :: T -> IO ()
      
      
      
      			** WARNING **
      	I believe that all the foreign stuff for C should
      	work exactly as before, but I have not tested it
      	thoroughly.  Sven, Manuel, Marcin: please give it a
      	whirl and compare old with new output.
      
      
      Lots of fiddling around with data types.  The main changes are
      
      * HsDecls.lhs
      	The ForeignDecl type and its friends
      	Note also the ForeignType constructor to TyClDecl
      
      * ForeignCall.lhs
      	Here's where the stuff that survives right through
      	compilation lives
      
      * TcForeign.lhs DsForeign.lhs
      	Substantial changes driven by the new data types
      
      * Parser.y ParseIface.y RnSource
      	Just what you'd expect
      cbdeae8f
    • simonpj's avatar
      [project @ 2001-05-24 13:49:32 by simonpj] · f70aaa98
      simonpj authored
      Tiny delta towards .NET
      f70aaa98
    • simonmar's avatar
      [project @ 2001-05-24 10:46:08 by simonmar] · ebe6fa32
      simonmar authored
      Fixes for the hsc2hs rules.
      ebe6fa32
    • simonmar's avatar
      [project @ 2001-05-24 10:41:13 by simonmar] · 5cdecabd
      simonmar authored
      Make hGetContents work on DuplexHandles, and some small cleanups.
      5cdecabd
    • simonpj's avatar
      [project @ 2001-05-24 06:49:28 by simonpj] · 93c01cb9
      simonpj authored
      Import assertPanic to support the ASSERT
      93c01cb9
  5. 23 May, 2001 6 commits