Changes between Version 20 and Version 21 of GhcApiStatus


Ignore:
Timestamp:
Aug 5, 2008 7:59:15 AM (6 years ago)
Author:
nominolo
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • GhcApiStatus

    v20 v21  
    3434}}} 
    3535 
    36 {{{TypecheckedMod}}} has two instances {{{TypecheckedModule}}}, 
    37 {{{DesugaredModule}}}.  A {{{DesugaredModule}}} desugared module is a 
     36{{{TypecheckedMod}}} has two instances {{{TypecheckedModule}}}, and 
     37{{{DesugaredModule}}}.  A {{{DesugaredModule}}} is 
    3838very similar to a {{{CoreModule}}}, but the latter contains less 
    3939information, while the former also contains all the information from 
    4040the parser and typechecker.  Users should therefore be careful about 
    41 memory leaks by and discard old intermediate results as soon as 
     41memory leaks and discard old intermediate results as soon as 
    4242possible. 
    4343 
    44 Compile errors are thrown inside the {{{Ghc}}} monad, and can be 
     44Compile errors are thrown inside the {{{Ghc}}} monad and can be 
    4545caught with {{{onCompileError}}}.  {{{IO}}} errors can also be caught 
    46 using {{{ghcCatch}}}.  Warnings are logged automatically and can be 
     46using {{{ghcCatch}}}.  (If we get a type class that allows handling exceptions in any monad, we should add instances in a wrapper package outside of the {{{GHC}}} package.)  
     47Warnings are logged automatically and can be 
    4748retrieved using {{{getWarnings}}} or discarded using 
    48 {{{clearWarnings}}}.  Error messages are communicated in the 
    49 exceptions thrown. 
     49{{{clearWarnings}}}.  An exception currently only contains the  
     50name of the phase it occurred in and the error message(s). 
    5051 
    5152== Current Work ==