2 % (c) The AQUA Project, Glasgow University, 1996
4 \section[PprStyle]{Pretty-printing `styles'}
7 #include "HsVersions.h"
14 CHK_Ubiq() -- debugging consistency check
17 = PprForUser -- Pretty-print in a way that will
18 -- make sense to the ordinary user;
19 -- must be very close to Haskell
20 -- syntax, etc. ToDo: how diff is
21 -- this from what pprInterface must
23 | PprDebug -- Standard debugging output
24 | PprShowAll -- Debugging output which leaves
25 -- nothing to the imagination
26 | PprInterface -- Interface generation
27 | PprForC -- must print out C-acceptable names
28 | PprUnfolding -- for non-interface intermodule info
29 -- the compiler writes/reads
30 | PprForAsm -- must print out assembler-acceptable names
31 Bool -- prefix CLabel with underscore?
32 (String -> String) -- format AsmTempLabel
35 Orthogonal to the above printing styles are (possibly) some
36 command-line flags that affect printing (often carried with the
37 style). The most likely ones are variations on how much type info is
40 The following test decides whether or not we are actually generating
41 code (either C or assembly).
43 codeStyle :: PprStyle -> Bool
45 codeStyle PprForC = True
46 codeStyle (PprForAsm _ _) = True