Changes between Version 4 and Version 5 of Plugins


Ignore:
Timestamp:
Mar 20, 2008 7:46:50 PM (6 years ago)
Author:
guest
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Plugins

    v4 v5  
    143143 
    144144The compiler needs to bring the plugin writer and users contributions together. A possible game plan might be: 
    145  0. Check for plugins referenced on the command line and give them a chance to parse command 
     145 0. Save any command line options beginning with -p so we can give them to plugins later. 
    146146 1. Suck in Haskell source as normal, but also parsing PLUGIN pragmas 
    147147 2. Load up any plugins we see referenced by PLUGIN pragmas, discarding those we don't know about (on the basis that PRAGMAS are meant to be extra information that isn't essential to compile the program, though we might want to at least warn if we can't find one!). This could happen via [http://www.cse.unsw.edu.au/~dons/hs-plugins/ hs-plugins].