1. 12 Jun, 2010 1 commit
  2. 25 May, 2010 1 commit
  3. 01 Dec, 2009 1 commit
  4. 17 Nov, 2009 1 commit
  5. 31 Oct, 2008 1 commit
  6. 27 Aug, 2008 1 commit
    • Simon Marlow's avatar
      re-fix of #1205, fix #2542 · 3d73e45b
      Simon Marlow authored
      New form of :load in GHCi:
      
      > :load *A
      
      forces A to be loaded as byte-code.  See the manual for details.  The
      previous behaviour for specifying filenames vs. module names on the
      command line and in :load has been restored.
      
      The Target datatype has a new Bool field, which is True if the target
      is allowed to be loaded from compiled code, or False otherwise, so
      this functionality is available via the GHC API.  guessTarget
      understands the *-prefix form for specifying targets.
      3d73e45b
  7. 05 Aug, 2008 1 commit
  8. 11 Jul, 2008 1 commit
  9. 09 Jul, 2008 1 commit
    • Simon Marlow's avatar
      #1205: ':load foo.hs' in GHCi always compiles to bytecode · 3897d02a
      Simon Marlow authored
      So now
      
        :load foo.hs       loads bytecode for foo.hs, even if foo.o exists
        :load foo          is just shorthand for :load foo.hs
        :load M            loads a module M, as object code if possible
                           (no change here)
      
        :set -fobject-code
        :load foo.hs       loads foo.hs as object code; an existing foo.o
                           can be used.
        
      This turned out to be very straightforward: when building the
      ModSummary for a file (summariseFile) we just ignore the object file
      unless -fobject-code is on.
      3897d02a
  10. 01 May, 2008 1 commit
  11. 26 Feb, 2008 2 commits
  12. 23 Jan, 2008 1 commit
    • Simon Marlow's avatar
      FIX #1838, #1987: change where GHCi searches for config files · f6efe0c7
      Simon Marlow authored
      6.6 behaviour:
        - ./.ghci
        - $HOME/.ghci
      
      6.8.[12] behaviour:
        - ./.ghci
        - Windows: c:/Documents and Settings/<user>/.ghci
        - Unix: $HOME/.ghci
      
      6.10 (and 6.8.3 when this is merged):
        - ./.ghci
        - Windows: c:/Documents and Settings/<user>/Application Data/ghc/ghci.conf
        - Unix: $HOME/.ghc/ghci.conf
        - $HOME/.ghci
      
      We will need to document this in the 6.8.3 release notes because it
      may affect Windows users who have adapted their setup to 6.8.[12].
      f6efe0c7
  13. 19 Jan, 2008 1 commit
    • Ian Lynagh's avatar
      Add :run and tweak :main · c24bd1bb
      Ian Lynagh authored
      You can now give :main a Haskell [String] as an argument, e.g.
      :main ["foo", "bar"]
      and :run is a variant that takes the name of the function to run.
      Also, :main now obeys the -main-is flag.
      c24bd1bb
  14. 25 Nov, 2007 1 commit
    • Ian Lynagh's avatar
      MERGED: Make ":" in GHCi repeat the last command · d2b3daa3
      Ian Lynagh authored
      Ian Lynagh <igloo@earth.li>**20071124231857
       It used to be a synonym for ":r" in 6.6.1, but this wasn't documented or
       known about by the developers. In 6.8.1 it was accidentally broken.
       This patch brings it back, but as "repeat the last command", similar to
       pressing enter in gdb. This is almost as good for people who want it to
       reload, and means that it can also be used to repeat commands like :step.
      d2b3daa3
  15. 20 Nov, 2007 1 commit
  16. 08 Nov, 2007 1 commit
  17. 11 Nov, 2007 1 commit
  18. 07 Nov, 2007 2 commits
    • Simon Marlow's avatar
      FIX #1765, #1766 · da4dda13
      Simon Marlow authored
      - :def! now overwrites a previous command with the same name
      - :def on its own lists the defined macros
      - ":undef f g" undefines both f and g
      da4dda13
    • Simon Marlow's avatar
      #1617: Add :browse! and various other additions to GHCi · 806ab633
      Simon Marlow authored
         
        - :browse!
          a variant of :browse that lists children separately,
          not in context, and gives import qualifiers in comments
      
      SimonM: I also added sorting by source location for interpreted
      modules in :browse, and alphabetic sorting by name otherwise.  For
      :browse *M, the locally-defined names come before the external ones.
      
        - :{ ..lines.. :} (multiline commands)
          allow existing commands to be spread over multiple lines
          to improve readability, both interactively and in .ghci
          (includes a refactoring that unifies the previous three
          command loops into one, runCommands, fed from cmdqueue,
          file, or readline)
      
        - :set
            now shows GHCi-specific flag settings (printing/
            debugger), as well as non-language dynamic flag 
            settings
          :show languages
            show active language flags
          :show packages
            show active package flags as well as implicitly 
            loaded packages
      806ab633
  19. 07 Oct, 2007 1 commit
  20. 19 Oct, 2007 1 commit
  21. 12 Sep, 2007 1 commit
  22. 11 Sep, 2007 1 commit
  23. 27 Aug, 2007 1 commit
    • mnislaih's avatar
      :stepover ---> :steplocal, :stepmodule · 3240dc3b
      mnislaih authored
       :stepover is declared a failed experiment. 
      :steplocal steps only on ticks contained in the current
      top level declaration. 
      :stepmodule steps only on ticks contained on the current
       module. 
      The current top level declaration and module are with
       respect to the breakpoint we are stopped on.
      
       The main reason for the failure of :stepover
      (apart from lacking a lexical call stack of course)
      is that it fails to detect when the expression being 
      evaluated is "complete", i.e. there are no ticks left in it.
      My assumption of the rightmost tick as the "last one",
      signaling that the expression is completely evaluated,
      is not true at all under laziness. 
      This assumption was key in the implementation of :stepover.
       
      3240dc3b
  24. 22 Aug, 2007 2 commits
  25. 20 Aug, 2007 1 commit
  26. 12 Aug, 2007 1 commit
  27. 04 Aug, 2007 1 commit
  28. 07 Aug, 2007 1 commit
  29. 16 Jul, 2007 7 commits
  30. 15 Jul, 2007 2 commits