diff options
| author | Ian Lynagh <igloo@earth.li> | 2011-07-15 02:26:24 +0100 |
|---|---|---|
| committer | Ian Lynagh <igloo@earth.li> | 2011-07-15 02:29:34 +0100 |
| commit | f07af788f1d8009034332a5c0b659486fa9b4d26 (patch) | |
| tree | 767f69e46f5bd58ce2822cd815f97c91d0959ba4 /compiler/nativeGen/PprInstruction.hs | |
| parent | 58cc5ed228adce6529eb1e0a849e5d9ca6175524 (diff) | |
| download | haskell-f07af788f1d8009034332a5c0b659486fa9b4d26.tar.gz | |
More work towards cross-compilation
There's now a variant of the Outputable class that knows what
platform we're targetting:
class PlatformOutputable a where
pprPlatform :: Platform -> a -> SDoc
pprPlatformPrec :: Platform -> Rational -> a -> SDoc
and various instances have had to be converted to use that class,
and we pass Platform around accordingly.
Diffstat (limited to 'compiler/nativeGen/PprInstruction.hs')
| -rw-r--r-- | compiler/nativeGen/PprInstruction.hs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/nativeGen/PprInstruction.hs b/compiler/nativeGen/PprInstruction.hs new file mode 100644 index 0000000000..6c19160e35 --- /dev/null +++ b/compiler/nativeGen/PprInstruction.hs @@ -0,0 +1,2 @@ + + pprInstruction :: Platform -> instr -> SDoc |
