1. 03 Feb, 2002 3 commits
    • sof's avatar
      [project @ 2002-02-03 17:08:55 by sof] · a68338c1
      sof authored
      document the environment variable expansion done in input package specifications
      a68338c1
    • sof's avatar
      [project @ 2002-02-03 17:06:12 by sof] · 5f67cbb7
      sof authored
      Provide support for authors that want to distribute packages, by
      expanding occurrences of "${foo}" in an input package spec with
      the value of the 'foo' environment variable. This permits easy
      configuration at install-time, e.g.,
      
        $ libdir=/opt/haskell/packages/lib ghc-pkg -a < NewPackage.pkg
      
      [Clearly, a separate preprocessing pass using some other tool could
       provide identical functionality. However, the benefits to the
       package author of not having to depend on such a tool being present
       on a user's box was considered more important.
      ]
      5f67cbb7
    • sof's avatar
      [project @ 2002-02-03 04:44:07 by sof] · 03adec57
      sof authored
      recognize .ly as a happy extension
      03adec57
  2. 02 Feb, 2002 1 commit
  3. 01 Feb, 2002 8 commits
  4. 31 Jan, 2002 12 commits
    • sof's avatar
      [project @ 2002-01-31 23:04:15 by sof] · 48ccd03c
      sof authored
      Win32 implementation, first pass.
      48ccd03c
    • sewardj's avatar
      [project @ 2002-01-31 18:01:34 by sewardj] · 1e8a345a
      sewardj authored
      Make a quite-large start on native code generator documentation.
      1e8a345a
    • simonpj's avatar
      [project @ 2002-01-31 17:48:26 by simonpj] · b27560c4
      simonpj authored
      Wibbles to yesterdays changes
      b27560c4
    • simonmar's avatar
      [project @ 2002-01-31 14:32:04 by simonmar] · fb18dd5a
      simonmar authored
      Update the building guide w.r.t. the enhanced source-file-searching
      mechanisms now in fptools/mk/paths.mk.
      
      Also, add a small section on Makefile debugging while I'm here,
      mentioning in particular 'make show'.
      fb18dd5a
    • simonmar's avatar
      [project @ 2002-01-31 13:46:38 by simonmar] · 185f7693
      simonmar authored
      Add test for GHCi w/ Happy-generated parsers.
      185f7693
    • simonmar's avatar
      [project @ 2002-01-31 13:42:20 by simonmar] · 95ac9a43
      simonmar authored
      Fix a classic bug: copying a Haskell string with one of the C string
      functions (in this case strncpy()) is wrong when the string contains
      '\0' characters.
      
      The symptom in this case is that Happy parsers created with -ag don't
      work in GHCi, because the state tables are encoded as strings
      containing lots of '\0' elements.
      95ac9a43
    • sewardj's avatar
      [project @ 2002-01-31 12:20:13 by sewardj] · 2980a982
      sewardj authored
      fix markup bug
      2980a982
    • sof's avatar
      [project @ 2002-01-31 11:18:06 by sof] · 3b9c5eb2
      sof authored
      First steps towards implementing better interop between
      Concurrent Haskell and native threads.
      
      - factored out Capability handling into a separate source file
        (only the SMP build uses multiple capabilities tho).
      - factored out OS/native threads handling into a separate
        source file, OSThreads.{c,h}. Currently, just a pthreads-based
        implementation; Win32 version to follow.
      - scheduler code now distinguishes between multi-task threaded
        code (SMP) and single-task threaded code ('threaded RTS'),
        but sharing code between these two modes whenever poss.
      
      i.e., just a first snapshot; the bulk of the transitioning code
      remains to be implemented.
      3b9c5eb2
    • sof's avatar
      [project @ 2002-01-31 10:48:55 by sof] · e282fcb3
      sof authored
      new define, RTS_SUPPORTS_THREADS - defined in SMP and 'threaded' modes of operation
      e282fcb3
    • sof's avatar
      [project @ 2002-01-31 10:47:47 by sof] · ddde1657
      sof authored
      Pass -lpthread to linker when using a 'threaded' RTS
      ddde1657
    • sof's avatar
      [project @ 2002-01-31 10:42:27 by sof] · fed216d7
      sof authored
      - new option --enable-threaded-rts, which turns on
        RTS support for better interop with native threads.
      - check for pthread.h
      - new config.mk variable, GhcRtsThreaded (={YES,NO})
      fed216d7
    • sof's avatar
      [project @ 2002-01-31 07:04:27 by sof] · 1ac8af86
      sof authored
      got tired of seeing gcc trigraph warning
      1ac8af86
  5. 30 Jan, 2002 16 commits
    • simonmar's avatar
      [project @ 2002-01-30 17:19:15 by simonmar] · 69201230
      simonmar authored
      Add a short section on modules & packages.
      69201230
    • simonpj's avatar
      [project @ 2002-01-30 17:16:36 by simonpj] · dd214d28
      simonpj authored
      -----------------------------
      	Tidy up the top level of TcModule
      	-----------------------------
      
      This commit started life as sorting out the TcInstDcls thing that
      we got wrong a few weeks back, but it spiraled out of control.
      
      However, the result is a nice tidy up of TcModule.
      
      typecheckModule/tcModule compiles a module from source code
      typecheckIface/tcIface   compiles a module from its interface file
      typecheckStmt		 compiles a Stmt
      typecheckExpr		 compiles a Expr
      
      tcExtraDecls is used by typecheckStmt/typecheckExpr
      	to compile interface-file decls.
      	It is just a wrapper for:
      
      tcIfaceImports, which is used by tcExtraDecls and tcIface
      	to compile interface file-file decls.
      
      tcImports, is similar to tcIfaceImports, but is used only by tcModule
      
      tcIfaceImports is used when compiling an interface, and can
      	therefore be quite a bit simpler
      dd214d28
    • simonpj's avatar
      [project @ 2002-01-30 17:16:04 by simonpj] · 605fd82f
      simonpj authored
      Improved printing
      605fd82f
    • simonmar's avatar
      [project @ 2002-01-30 16:54:18 by simonmar] · 913ed135
      simonmar authored
      Fix markup bug.
      913ed135
    • simonmar's avatar
      [project @ 2002-01-30 16:37:59 by simonmar] · 487968ec
      simonmar authored
      comsetic only: shorten some lines.
      487968ec
    • simonmar's avatar
      [project @ 2002-01-30 16:37:14 by simonmar] · 4aed87eb
      simonmar authored
      Simplify the package story inside the compiler.  The new story is
      this:
      
        The Finder no longer determines a module's package based on its
        filesystem location.  The filesystem location indicates only whether
        a given module is in the current package or not (i.e. found along
        the -i path ==> current package, found along the package path ==>
        other package).
      
        Hence a Module no longer contains a package name.  Instead it just
        contains PackageInfo, which is either ThisPackage or AnotherPackage.
        The compiler uses this information for generating cross-DLL calls
        and omitting certain version information from .hi files.
      
        The interface still contains the package name.  This isn't used for
        anything right now, but in the future (when we have hierarchical
        libraries) we might use it to automatically determine which packages
        a binary should be linked against.  When building a package, you
        should still use -package-name, but it won't be fatal if you don't.
      
      The warning/error about package name mismatches has gone away.
      4aed87eb
    • simonmar's avatar
      [project @ 2002-01-30 16:27:34 by simonmar] · 1e046f78
      simonmar authored
      Set $(HC) *after* including boilerplate.mk, which re-defines it.
      1e046f78
    • simonmar's avatar
      [project @ 2002-01-30 16:25:20 by simonmar] · 6c09a020
      simonmar authored
      Don't use :: rules for building HSstd.o, they cause it to be rebuilt
      every time.  According to the GNU make manual, :: rules are vary
      rarely actually useful, and I'm sure we use them too much.
      6c09a020
    • simonmar's avatar
      [project @ 2002-01-30 14:05:36 by simonmar] · abbc07ed
      simonmar authored
      Minor cleanups.
      abbc07ed
    • simonmar's avatar
      [project @ 2002-01-30 14:05:01 by simonmar] · 6682d974
      simonmar authored
      Cleanup sweep, we can now use more of the std fptools build system
      machinery in here.
      6682d974
    • simonmar's avatar
      [project @ 2002-01-30 14:01:29 by simonmar] · 54b445f3
      simonmar authored
      - .hsc sources can generate .hc files too
      - Fix the sense of a conditional
      54b445f3
    • sewardj's avatar
      [project @ 2002-01-30 13:23:25 by sewardj] · f50b4739
      sewardj authored
      Fix debug build.
      f50b4739
    • simonmar's avatar
      [project @ 2002-01-30 13:13:55 by simonmar] · 0f8bc606
      simonmar authored
      Oops, better not pre-compute PRE_SRCS in paths.mk, because ALL_DIRS is
      not set yet.  Instead, defer it until we include target.mk.
      0f8bc606
    • simonmar's avatar
      [project @ 2002-01-30 12:17:21 by simonmar] · 975ef297
      simonmar authored
      Clean up this Makefile:
      
        - Use the enhanced automatic source-finding machinery from
          paths.mk rather than rolling our own,
      
        - Turn on UseGhcForCc to get our C files compiled with GHC.
          This fixes some obscure bugs caused by the fact that we
          were re-initializing $(CC_OPTS) in this Makefile using
          :=, when it had previously already been set with = (apparently
          different versions of GNU make behave differently presented
          with this kind of mixed assigment).
      975ef297
    • simonmar's avatar
      [project @ 2002-01-30 12:13:59 by simonmar] · 3dfd7d76
      simonmar authored
      GHC_CC_OPTS is a derived version of CC_OPTS with -optc prepended to
      each option.  This is used when $(UseGhcForCc) = "YES" (see suffix.mk).
      3dfd7d76
    • simonmar's avatar
      [project @ 2002-01-30 12:13:11 by simonmar] · a7cfd56b
      simonmar authored
      Introduce a new tweakable $(UseGhcForCc) which if set to "YES" enables
      a different set of suffix rules which build C-ish files using $(HC)
      instead of $(CC).  We'll use this to clean up the ghc/rts Makefile.
      a7cfd56b