aboutsummaryrefslogtreecommitdiff
path: root/test/Helper.hs
blob: 25cc5161f1238bb50f5b426b2f85deea84e5a5ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
module Helper where
import           DynFlags (Settings(..), DynFlags, defaultDynFlags)
import           Platform
import           PlatformConstants

dynFlags :: DynFlags
dynFlags = defaultDynFlags settings
  where
    settings = Settings {
        sTargetPlatform = platform
      , sGhcUsagePath = error "Haddock.ParserSpec.sGhcUsagePath"
      , sGhciUsagePath = error "Haddock.ParserSpec.sGhciUsagePath"
      , sTopDir = error "Haddock.ParserSpec.sTopDir"
      , sTmpDir = error "Haddock.ParserSpec.sTmpDir"
      , sRawSettings = []
      , sExtraGccViaCFlags = error "Haddock.ParserSpec.sExtraGccViaCFlags"
      , sSystemPackageConfig = error "Haddock.ParserSpec.sSystemPackageConfig"
      , sPgm_L = error "Haddock.ParserSpec.sPgm_L"
      , sPgm_P = error "Haddock.ParserSpec.sPgm_P"
      , sPgm_F = error "Haddock.ParserSpec.sPgm_F"
      , sPgm_c = error "Haddock.ParserSpec.sPgm_c"
      , sPgm_s = error "Haddock.ParserSpec.sPgm_s"
      , sPgm_a = error "Haddock.ParserSpec.sPgm_a"
      , sPgm_l = error "Haddock.ParserSpec.sPgm_l"
      , sPgm_dll = error "Haddock.ParserSpec.sPgm_dll"
      , sPgm_T = error "Haddock.ParserSpec.sPgm_T"
      , sPgm_sysman = error "Haddock.ParserSpec.sPgm_sysman"
      , sPgm_windres = error "Haddock.ParserSpec.sPgm_windres"
      , sPgm_lo = error "Haddock.ParserSpec.sPgm_lo"
      , sPgm_lc = error "Haddock.ParserSpec.sPgm_lc"
      , sOpt_L = []
      , sOpt_P = []
      , sOpt_F = []
      , sOpt_c = []
      , sOpt_a = []
      , sOpt_l = []
      , sOpt_windres = []
      , sOpt_lo = []
      , sOpt_lc = []
      , sLdSupportsCompactUnwind = error "Haddock.ParserSpec.sLdSupportsCompactUnwind"
      , sLdSupportsBuildId  = error "Haddock.ParserSpec.sLdSupportsBuildId "
      , sLdSupportsFilelist  = error "Haddock.ParserSpec.sLdSupportsFilelist "
      , sLdIsGnuLd = error "Haddock.ParserSpec.sLdIsGnuLd"
      , sPlatformConstants = platformConstants
      }
    platform = Platform {
        platformArch = ArchUnknown
      , platformOS = OSUnknown
      , platformWordSize = 64
      , platformHasGnuNonexecStack = False
      , platformHasIdentDirective = False
      , platformHasSubsectionsViaSymbols = False
      , platformUnregisterised = error "Haddock.ParserSpec.platformUnregisterised"
      }

    platformConstants = PlatformConstants {
        pc_platformConstants = ()
      , pc_STD_HDR_SIZE = 0
      , pc_PROF_HDR_SIZE = 0
      , pc_BLOCK_SIZE = 0
      , pc_BLOCKS_PER_MBLOCK = 0
      , pc_OFFSET_StgRegTable_rR1 = 0
      , pc_OFFSET_StgRegTable_rR2 = 0
      , pc_OFFSET_StgRegTable_rR3 = 0
      , pc_OFFSET_StgRegTable_rR4 = 0
      , pc_OFFSET_StgRegTable_rR5 = 0
      , pc_OFFSET_StgRegTable_rR6 = 0
      , pc_OFFSET_StgRegTable_rR7 = 0
      , pc_OFFSET_StgRegTable_rR8 = 0
      , pc_OFFSET_StgRegTable_rR9 = 0
      , pc_OFFSET_StgRegTable_rR10 = 0
      , pc_OFFSET_StgRegTable_rF1 = 0
      , pc_OFFSET_StgRegTable_rF2 = 0
      , pc_OFFSET_StgRegTable_rF3 = 0
      , pc_OFFSET_StgRegTable_rF4 = 0
      , pc_OFFSET_StgRegTable_rF5 = 0
      , pc_OFFSET_StgRegTable_rF6 = 0
      , pc_OFFSET_StgRegTable_rD1 = 0
      , pc_OFFSET_StgRegTable_rD2 = 0
      , pc_OFFSET_StgRegTable_rD3 = 0
      , pc_OFFSET_StgRegTable_rD4 = 0
      , pc_OFFSET_StgRegTable_rD5 = 0
      , pc_OFFSET_StgRegTable_rD6 = 0
      , pc_OFFSET_StgRegTable_rXMM1 = 0
      , pc_OFFSET_StgRegTable_rXMM2 = 0
      , pc_OFFSET_StgRegTable_rXMM3 = 0
      , pc_OFFSET_StgRegTable_rXMM4 = 0
      , pc_OFFSET_StgRegTable_rXMM5 = 0
      , pc_OFFSET_StgRegTable_rXMM6 = 0
      , pc_OFFSET_StgRegTable_rL1 = 0
      , pc_OFFSET_StgRegTable_rSp = 0
      , pc_OFFSET_StgRegTable_rSpLim = 0
      , pc_OFFSET_StgRegTable_rHp = 0
      , pc_OFFSET_StgRegTable_rHpLim = 0
      , pc_OFFSET_StgRegTable_rCCCS = 0
      , pc_OFFSET_StgRegTable_rCurrentTSO = 0
      , pc_OFFSET_StgRegTable_rCurrentNursery = 0
      , pc_OFFSET_StgRegTable_rHpAlloc = 0
      , pc_OFFSET_stgEagerBlackholeInfo = 0
      , pc_OFFSET_stgGCEnter1 = 0
      , pc_OFFSET_stgGCFun = 0
      , pc_OFFSET_Capability_r = 0
      , pc_OFFSET_bdescr_start = 0
      , pc_OFFSET_bdescr_free = 0
      , pc_OFFSET_bdescr_blocks = 0
      , pc_SIZEOF_CostCentreStack = 0
      , pc_OFFSET_CostCentreStack_mem_alloc = 0
      , pc_REP_CostCentreStack_mem_alloc = 0
      , pc_OFFSET_CostCentreStack_scc_count = 0
      , pc_REP_CostCentreStack_scc_count = 0
      , pc_OFFSET_StgHeader_ccs = 0
      , pc_OFFSET_StgHeader_ldvw = 0
      , pc_SIZEOF_StgSMPThunkHeader = 0
      , pc_OFFSET_StgEntCounter_allocs = 0
      , pc_REP_StgEntCounter_allocs = 0
      , pc_OFFSET_StgEntCounter_allocd = 0
      , pc_REP_StgEntCounter_allocd = 0
      , pc_OFFSET_StgEntCounter_registeredp = 0
      , pc_OFFSET_StgEntCounter_link = 0
      , pc_OFFSET_StgEntCounter_entry_count = 0
      , pc_SIZEOF_StgUpdateFrame_NoHdr = 0
      , pc_SIZEOF_StgMutArrPtrs_NoHdr = 0
      , pc_OFFSET_StgMutArrPtrs_ptrs = 0
      , pc_OFFSET_StgMutArrPtrs_size = 0
      , pc_SIZEOF_StgArrWords_NoHdr = 0
      , pc_OFFSET_StgTSO_cccs = 0
      , pc_OFFSET_StgTSO_stackobj = 0
      , pc_OFFSET_StgStack_sp = 0
      , pc_OFFSET_StgStack_stack = 0
      , pc_OFFSET_StgUpdateFrame_updatee = 0
      , pc_SIZEOF_StgFunInfoExtraRev = 0
      , pc_MAX_SPEC_SELECTEE_SIZE = 0
      , pc_MAX_SPEC_AP_SIZE = 0
      , pc_MIN_PAYLOAD_SIZE = 0
      , pc_MIN_INTLIKE = 0
      , pc_MAX_INTLIKE = 0
      , pc_MIN_CHARLIKE = 0
      , pc_MAX_CHARLIKE = 0
      , pc_MUT_ARR_PTRS_CARD_BITS = 0
      , pc_MAX_Vanilla_REG = 0
      , pc_MAX_Float_REG = 0
      , pc_MAX_Double_REG = 0
      , pc_MAX_Long_REG = 0
      , pc_MAX_XMM_REG = 0
      , pc_MAX_Real_Vanilla_REG = 0
      , pc_MAX_Real_Float_REG = 0
      , pc_MAX_Real_Double_REG = 0
      , pc_MAX_Real_XMM_REG = 0
      , pc_MAX_Real_Long_REG = 0
      , pc_RESERVED_C_STACK_BYTES = 0
      , pc_RESERVED_STACK_WORDS = 0
      , pc_AP_STACK_SPLIM = 0
      , pc_WORD_SIZE = 0
      , pc_DOUBLE_SIZE = 0
      , pc_CINT_SIZE = 0
      , pc_CLONG_SIZE = 0
      , pc_CLONG_LONG_SIZE = 0
      , pc_BITMAP_BITS_SHIFT = 0
      , pc_TAG_BITS = 0
      , pc_WORDS_BIGENDIAN = False
      , pc_DYNAMIC_BY_DEFAULT = False
      , pc_LDV_SHIFT = 0
      , pc_ILDV_CREATE_MASK = 0
      , pc_ILDV_STATE_CREATE = 0
      , pc_ILDV_STATE_USE = 0
      }