1. 11 Jun, 2001 3 commits
    • simonpj's avatar
      [project @ 2001-06-11 12:24:51 by simonpj] · 2c6d73e2
      simonpj authored
      	Tidy up and improve "pattern contexts"
      In various places (renamer, typechecker, desugarer) we need to know
      what the context of a pattern match is (case expression, function defn,
      let binding, etc).  This commit tidies up the story quite a bit.  I
      think it represents a net decrease in code, and certainly it improves the
      error messages from:
      	f x x = 3
      Prevsiously we got a message like "Conflicting bindings for x in a pattern match",
      but not it says "..in a defn of function f".
      WARNING: the tidy up had a more global effect than I originally expected,
      so it's possible that some other error messages look a bit peculiar.  They
      should be easy to fix, but tell us!
    • simonpj's avatar
      [project @ 2001-06-11 12:21:17 by simonpj] · 0004357c
      simonpj authored
      	Allow data type declarations
      	to have zero constructors
      This allows
      	data T a
      as a data type declaration; i.e. allows zero constructors.
      If there is an '=' sign there must be at least one constructor.
      * Parser.y: parse the declaration
      * HsDecls: print out the data type declaration right
      * TyCon: don't ASSERT that the constructors are non-empty
    • malcolm's avatar
      [project @ 2001-06-11 08:58:21 by malcolm] · 0a5856f3
      malcolm authored
      Mention __NHC__ alongside __HUGS__ and __HBC__ in the description
      of the cpp symbol __GLASGOW_HASKELL__.
  2. 09 Jun, 2001 1 commit
  3. 08 Jun, 2001 2 commits
  4. 07 Jun, 2001 6 commits
    • sewardj's avatar
      [project @ 2001-06-07 16:00:18 by sewardj] · 8ec05915
      sewardj authored
      Allow underscores in module names presented to the :module command.
    • simonmar's avatar
      [project @ 2001-06-07 14:15:22 by simonmar] · dea3256b
      simonmar authored
      Don't force a module's {-# SOURCE #-} imports to have object linkables
      in order for the current module's object linkable to be considered
      valid (fixes some unnecessary recompilation with recursive modules).
    • sewardj's avatar
      [project @ 2001-06-07 11:07:51 by sewardj] · 06ffd264
      sewardj authored
      Fix Unix world breakage.
    • simonmar's avatar
      [project @ 2001-06-07 11:03:07 by simonmar] · c95b8662
      simonmar authored
      First part of support for hierarchical module names:
         - the Finder now searches all possible paths when looking for
           a source file or .hi file.  I've removed the caching because
           now we have to search in subdirectories of each path option,
           and it was dubious whether the cache was actually helping.
         - the compilation manager now outputs a warning if it can't find
           the source for a given module, only the .hi file.  Previously
           this caused a cryptic error message when we attempted to call
           getModificationTime on the non-existent source file.
    • sewardj's avatar
      [project @ 2001-06-07 10:45:30 by sewardj] · beedb87b
      sewardj authored
      Track current changes in the text-mode-seek-on-Windows saga.
    • sewardj's avatar
      [project @ 2001-06-07 10:44:47 by sewardj] · f819f0f4
      sewardj authored
      Try to improve matters in the text-mode-seek swamp.  Only disallow
      text-mode-seeks on Win32, rather than on all platforms.  That means
      that seeks in text mode on Unix platforms should work as originally
      (which was the correct H98 behaviour), whilst Win32 generates
      exceptions if you do seeks in text mode.
  5. 06 Jun, 2001 12 commits
  6. 05 Jun, 2001 7 commits
  7. 04 Jun, 2001 9 commits