Control-Monad-MultiPass-0.1.0.0: A Library for Writing Multi-Pass Algorithms.

Safe HaskellSafe

Control.Monad.MultiPass.Example.CFG2

Description

This example is a modified version of the Control.Monad.MultiPass.Example.CFG example, which uses a mutable ST2Array to represent the control flow graph rather than an immutable Array. This means that it is not possible to use pmapM to map over the array. Instead pmapST2ArrayMP is used

Documentation

newtype Node Source

Constructors

Node Int 

Instances

emitCFG :: NumThreads -> CFG r w -> ST2 r w (ST2Array r w Position Int)Source