1. 30 Nov, 2012 1 commit
    • Iavor S. Diatchki's avatar
      Add ":info!" to GHCi. This shows all instances without filtering first. · 2ec32a8e
      Iavor S. Diatchki authored
      The default behavior of :info is to show only those instances of
      for a type, where all relevant type constructor names are in scope.
      This keeps down the number of instances shown to the user.
      
      In some cases, it is nice to be able to see all instances for a type.
      This patch implements this with the :info! command.
      2ec32a8e
  2. 29 Nov, 2012 1 commit
  3. 16 Oct, 2012 1 commit
    • ian@well-typed.com's avatar
      Some alpha renaming · cd33eefd
      ian@well-typed.com authored
      Mostly d -> g (matching DynFlag -> GeneralFlag).
      Also renamed if* to when*, matching the Haskell if/when names
      cd33eefd
  4. 16 Sep, 2012 1 commit
  5. 03 Sep, 2012 1 commit
  6. 23 Aug, 2012 2 commits
  7. 13 Aug, 2012 1 commit
  8. 11 Jul, 2012 1 commit
  9. 10 Jul, 2012 1 commit
  10. 04 Jul, 2012 1 commit
  11. 25 Jun, 2012 2 commits
  12. 22 Jun, 2012 1 commit
  13. 18 Jun, 2012 1 commit
  14. 12 Jun, 2012 3 commits
  15. 11 Jun, 2012 1 commit
  16. 05 Jun, 2012 1 commit
  17. 29 May, 2012 1 commit
    • Ian Lynagh's avatar
      Replace printDump with a new Severity · 78252479
      Ian Lynagh authored
      We now use log_action with severity SevDump, rather than calling
      printDump. This means that what happens to dumped info is now under
      the control of the GHC API user, rather than always going to stdout.
      78252479
  18. 26 May, 2012 1 commit
  19. 19 May, 2012 1 commit
  20. 14 May, 2012 1 commit
  21. 06 May, 2012 2 commits
  22. 27 Apr, 2012 1 commit
  23. 25 Apr, 2012 1 commit
  24. 23 Apr, 2012 1 commit
  25. 13 Apr, 2012 2 commits
    • Simon Peyton Jones's avatar
      Revert "Added ':runmonad' command to GHCi" · e0e99f99
      Simon Peyton Jones authored
      Two problems, for now at any rate
        a) Breaks the build with lots of errors like
              No instance for (Show (IO ())) arising from a use of `print'
        b) Discussion of the approache hasn't converged yet
           (Simon M had a number of suggestions)
      
      This reverts commit eecd7c98.
      e0e99f99
    • dterei's avatar
      Added ':runmonad' command to GHCi · eecd7c98
      dterei authored
      This command allows you to lift user stmts in GHCi into an IO monad
      that implements the GHC.GHCi.GHCiSandboxIO type class. This allows for
      easy sandboxing of GHCi using :runmonad and Safe Haskell.
      
      Longer term it would be nice to allow a more general model for the Monad
      than GHCiSandboxIO but delaying this for the moment.
      eecd7c98
  26. 11 Apr, 2012 3 commits
  27. 31 Mar, 2012 1 commit
  28. 11 Mar, 2012 1 commit
  29. 02 Mar, 2012 1 commit
  30. 01 Mar, 2012 1 commit
    • Simon Marlow's avatar
      GHCi: add :seti, for options that apply only at the prompt (#3217) · 2e55760b
      Simon Marlow authored
      GHCi now maintains two DynFlags: one that applies to whole modules
      loaded with :load, and one that applies to things typed at the prompt
      (expressions, statements, declarations, commands).
      
        The :set command modifies both DynFlags.  This is for backwards
        compatibility: users won't notice any difference.
      
        The :seti command applies only to the interactive DynFlags.
      
      Additionally, I made a few changes to ":set" (with no arguments):
      
        * Now it only prints out options that differ from the defaults,
          rather than the whole list.
      
        * There is a new variant, ":set -a" to print out all options (the
          old behaviour).
      
        * It also prints out language options.
      
      e.g.
      
      Prelude> :set
      options currently set: none.
      base language is: Haskell2010
      with the following modifiers:
        -XNoDatatypeContexts
        -XNondecreasingIndentation
      GHCi-specific dynamic flag settings:
      other dynamic, non-language, flag settings:
        -fimplicit-import-qualified
      warning settings:
      
      ":seti" (with no arguments) does the same as ":set", but for the
      interactive options.  It also has the "-a" option.
      
      The interactive DynFlags are kept in the InteractiveContext, and
      copied into the HscEnv at the appropriate points (all in HscMain).
      
      There are some new GHC API operations:
      
      -- | Set the 'DynFlags' used to evaluate interactive expressions.
      setInteractiveDynFlags :: GhcMonad m => DynFlags -> m ()
      
      -- | Get the 'DynFlags' used to evaluate interactive expressions.
      getInteractiveDynFlags :: GhcMonad m => m DynFlags
      
      -- | Sets the program 'DynFlags'.
      setProgramDynFlags :: GhcMonad m => DynFlags -> m [PackageId]
      
      -- | Returns the program 'DynFlags'.
      getProgramDynFlags :: GhcMonad m => m DynFlags
      
      Note I have not completed the whole of the plan outlined in #3217 yet:
      when in the context of a loaded module we don't take the interactive
      DynFlags from that module.  That needs some more refactoring and
      thinking about, because we'll need to save and restore the original
      interactive DynFlags.
      
      This solves the immediate problem that people are having with the new
      flag checking in 7.4.1, because now it is possible to set language
      options in ~/.ghci that do not affect loaded modules and thereby cause
      recompilation.
      2e55760b
  31. 16 Feb, 2012 1 commit
  32. 14 Feb, 2012 1 commit