Skip to content

Instantly share code, notes, and snippets.

@steshaw
Created June 15, 2022 00:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steshaw/b636fb76c805bfa0fff7484f5da11ed6 to your computer and use it in GitHub Desktop.
Save steshaw/b636fb76c805bfa0fff7484f5da11ed6 to your computer and use it in GitHub Desktop.
Code Comments
compiler 1352 728
compiler/GHC 11054 5272
compiler/GHC/Builtin 4783 1736
compiler/GHC/Builtin/Names 856 279
compiler/GHC/Builtin/PrimOps 47 33
compiler/GHC/Builtin/Types 1796 553
compiler/GHC/ByteCode 1186 410
compiler/GHC/Cmm 8173 5150
compiler/GHC/Cmm/Dataflow 538 303
compiler/GHC/Cmm/Info 914 401
compiler/GHC/Cmm/Parser 65 34
compiler/GHC/Cmm/Ppr 254 217
compiler/GHC/Cmm/Switch 67 50
compiler/GHC/CmmToAsm 3164 1614
compiler/GHC/CmmToAsm/AArch64 1956 1296
compiler/GHC/CmmToAsm/CFG 507 137
compiler/GHC/CmmToAsm/Dwarf 622 240
compiler/GHC/CmmToAsm/PPC 3680 1119
compiler/GHC/CmmToAsm/Reg 1726 1010
compiler/GHC/CmmToAsm/Reg/Graph 1357 1022
compiler/GHC/CmmToAsm/Reg/Linear 714 555
compiler/GHC/CmmToAsm/X86 5071 2072
compiler/GHC/CmmToLlvm 2446 1163
compiler/GHC/Core 22790 11421
compiler/GHC/Core/Coercion 1312 548
compiler/GHC/Core/Map 774 322
compiler/GHC/Core/Opt 22893 9875
compiler/GHC/Core/Opt/Simplify 2738 1308
compiler/GHC/Core/Opt/WorkWrap 1104 510
compiler/GHC/Core/Rules 9 4
compiler/GHC/Core/TyCo 3165 1592
compiler/GHC/Core/TyCon 226 91
compiler/GHC/Core/Unfold 317 140
compiler/GHC/CoreToStg 1549 715
compiler/GHC/Data 2411 1185
compiler/GHC/Data/FastString 70 30
compiler/GHC/Data/Graph 1313 781
compiler/GHC/Data/List 150 84
compiler/GHC/Driver 11541 5436
compiler/GHC/Driver/Backend 23 9
compiler/GHC/Driver/Backpack 58 29
compiler/GHC/Driver/Config 338 81
compiler/GHC/Driver/Config/Cmm 19 6
compiler/GHC/Driver/Config/Core 150 40
compiler/GHC/Driver/Config/Core/Opt 38 13
compiler/GHC/Driver/Config/HsToCore 34 8
compiler/GHC/Driver/Config/Stg 67 22
compiler/GHC/Driver/Env 126 92
compiler/GHC/Driver/Errors 524 155
compiler/GHC/Driver/Pipeline 1116 503
compiler/GHC/Hs 7033 2948
compiler/GHC/Hs/Syn 164 36
compiler/GHC/HsToCore 9295 3867
compiler/GHC/HsToCore/Errors 424 84
compiler/GHC/HsToCore/Foreign 942 360
compiler/GHC/HsToCore/Match 748 249
compiler/GHC/HsToCore/Pmc 2253 1217
compiler/GHC/HsToCore/Pmc/Solver 473 325
compiler/GHC/Iface 8458 3320
compiler/GHC/Iface/Ext 3366 767
compiler/GHC/Iface/Recomp 151 82
compiler/GHC/Iface/Tidy 168 108
compiler/GHC/Linker 2145 1064
compiler/GHC/Linker/Static 20 11
compiler/GHC/Llvm 1151 705
compiler/GHC/Parser 3754 1552
compiler/GHC/Parser/Errors 1100 338
compiler/GHC/Parser/PostProcess 830 752
compiler/GHC/Platform 457 294
compiler/GHC/Platform/Reg 20 13
compiler/GHC/Rename 11712 4915
compiler/GHC/Runtime 2198 911
compiler/GHC/Runtime/Eval 64 34
compiler/GHC/Runtime/Heap 1403 616
compiler/GHC/Runtime/Interpreter 45 29
compiler/GHC/Settings 222 79
compiler/GHC/Stg 3514 1564
compiler/GHC/Stg/InferTags 481 220
compiler/GHC/Stg/Lift 466 445
compiler/GHC/StgToCmm 8538 4595
compiler/GHC/SysTools 1501 568
compiler/GHC/Tc 14517 6956
compiler/GHC/Tc/Deriv 5557 2474
compiler/GHC/Tc/Errors 6003 1676
compiler/GHC/Tc/Errors/Hole 95 55
compiler/GHC/Tc/Gen 13509 6169
compiler/GHC/Tc/Instance 2290 1118
compiler/GHC/Tc/Solver 7756 3171
compiler/GHC/Tc/TyCl 4219 1668
compiler/GHC/Tc/Types 3169 1813
compiler/GHC/Tc/Utils 10835 5044
compiler/GHC/Types 9903 5425
compiler/GHC/Types/CostCentre 27 14
compiler/GHC/Types/Fixity 31 15
compiler/GHC/Types/Hint 251 26
compiler/GHC/Types/Id 1745 883
compiler/GHC/Types/Name 2233 1132
compiler/GHC/Types/TyThing 127 70
compiler/GHC/Types/Unique 1241 821
compiler/GHC/Types/Var 630 399
compiler/GHC/Unit 3102 2012
compiler/GHC/Unit/Finder 57 47
compiler/GHC/Unit/Home 78 59
compiler/GHC/Unit/Module 1591 1021
compiler/GHC/Utils 5583 3303
compiler/GHC/Utils/Binary 188 27
compiler/GHC/Utils/IO 12 8
compiler/GHC/Utils/Monad/State 125 70
compiler/GHC/Utils/Panic 87 65
compiler/GHC/Utils/Ppr 81 25
compiler/Language/Haskell 41 18
compiler/Language/Haskell/Syntax 3815 3101
TOTAL: 299177 141147
Code Comments
AArch64.hs 116 87
ARM.hs 5 5
Analysis.hs 294 262
Annotation.hs 830 544
Annotations.hs 85 55
App.hs 846 376
Ar.hs 216 54
ArgRep.hs 100 70
Arity.hs 1819 1009
Arrow.hs 337 155
Arrows.hs 839 417
Asm.hs 514 157
Ast.hs 1825 306
Avail.hs 272 129
Axiom.hs 419 190
Backend.hs 395 526
Backpack.hs 1200 787
Bag.hs 298 60
Base.hs 535 528
BaseDir.hs 149 57
Basic.hs 1432 638
BcPrep.hs 169 45
Binary.hs 1395 798
Bind.hs 2635 1344
Binds.hs 1773 989
Bitmap.hs 71 32
Block.hs 221 102
BlockId.hs 30 16
BlockLayout.hs 606 316
Bool.hs 22 3
BooleanFormula.hs 184 79
BreakInfo.hs 7 5
Breakpoints.hs 46 8
BufHandle.hs 109 35
Build.hs 1227 545
C.hs 464 163
CFG.hs 932 430
CLabel.hs 1235 580
CPrim.hs 139 21
CSE.hs 1034 457
Cache.hs 108 52
Call.hs 242 111
CallArity.hs 537 226
CallConv.hs 164 68
CallerCC.hs 190 37
Canonical.hs 2230 913
CgUtils.hs 133 54
CharClass.hs 188 24
Check.hs 248 103
Class.hs 1304 606
CliOption.hs 14 13
Closure.hs 552 430
CmdLine.hs 240 114
Cmm.hs 184 143
CmmToAsm.hs 815 384
CmmToC.hs 1006 503
CmmToLlvm.hs 175 91
Coalesce.hs 58 41
CodeGen.hs 7653 3172
CodeOutput.hs 320 70
Coercion.hs 1850 884
Collections.hs 128 50
Color.hs 211 174
Colour.hs 81 25
CommonBlockElim.hs 207 113
CompleteMatch.hs 28 12
ConLike.hs 132 84
Concrete.hs 454 230
Cond.hs 130 74
Config.hs 289 136
ConstantFold.hs 2400 943
Constants.hs 251 78
Constraint.hs 1551 836
Constructor.hs 225 72
ContFlowOpt.hs 208 240
Context.hs 295 164
Core.hs 1377 820
CoreToIface.hs 528 197
CoreToStg.hs 515 482
CostCentre.hs 218 144
Coverage.hs 103 36
Cpr.hs 143 96
CprAnal.hs 916 296
DFM.hs 235 219
DSet.hs 86 56
Data.hs 170 69
DataCon.hs 1313 840
Dataflow.hs 306 151
Debug.hs 329 104
DebugBlock.hs 400 164
Debugger.hs 200 70
Decl.hs 233 140
Decls.hs 1977 1039
Default.hs 70 39
Demand.hs 1834 884
Deps.hs 284 236
Deriv.hs 1520 721
Desugar.hs 348 186
Diagnostic.hs 17 4
Directed.hs 377 172
DmdAnal.hs 1566 679
Doc.hs 245 89
DocString.hs 136 61
Docs.hs 454 165
Dominators.hs 555 226
Dump.hs 268 97
Dwarf.hs 200 72
Dynamic.hs 149 109
Elf.hs 315 145
EnumSet.hs 44 26
Env.hs 4948 2371
Error.hs 758 411
Errors.hs 2076 820
EvTerm.hs 48 26
Eval.hs 920 364
Evidence.hs 705 385
Exception.hs 18 10
Execute.hs 962 432
Exitify.hs 344 155
Export.hs 466 295
Expr.hs 7979 3992
ExtCode.hs 156 104
Extension.hs 552 421
External.hs 90 82
ExtraObj.hs 189 80
FM.hs 318 210
FV.hs 62 137
FVs.hs 1337 724
FamInstEnv.hs 1084 474
Family.hs 627 385
FastMutInt.hs 30 16
FastString.hs 455 271
FieldLabel.hs 132 73
Fields.hs 60 34
Finder.hs 528 268
Fingerprint.hs 24 21
FiniteMap.hs 23 8
FitTypes.hs 95 55
Fixity.hs 202 106
Flags.hs 807 207
FloatIn.hs 564 202
FloatOut.hs 573 186
Foreign.hs 849 422
ForeignCall.hs 256 107
ForeignStubs.hs 56 35
Format.hs 62 48
FreeRegs.hs 58 23
FunDeps.hs 463 228
Functor.hs 1014 433
GHC.hs 1236 707
Generate.hs 2307 841
GenerateCgIPEStub.hs 227 45
Generics.hs 735 357
GlobalVars.hs 96 38
Graph.hs 938 593
GuardedRHSs.hs 109 47
Haddock.hs 830 752
Head.hs 1041 454
Header.hs 338 132
Heap.hs 393 299
Hint.hs 324 225
Hole.hs 759 259
Home.hs 99 119
Hooks.hs 123 35
Hpc.hs 32 17
HpcInfo.hs 22 12
Hs.hs 92 79
HsToCore.hs 620 197
HsType.hs 4463 1939
IO.hs 199 57
IOEnv.hs 132 129
IPE.hs 28 23
Id.hs 658 363
Ids.hs 47 33
IfaceToCore.hs 1398 674
ImpExp.hs 257 167
Implement.hs 67 50
Imported.hs 28 26
InertSet.hs 1308 504
Infer.hs 714 360
InferTags.hs 462 180
Info.hs 1149 755
InfoTable.hs 57 28
InitFini.hs 63 15
Inspect.hs 1034 404
InstEnv.hs 891 451
Instance.hs 1702 705
Instances.hs 310 233
Instantiate.hs 726 311
Instr.hs 2051 1059
Interact.hs 1878 690
Internal.hs 23 9
Interpreter.hs 563 217
JoinToTargets.hs 204 176
Json.hs 47 16
KnotVars.hs 74 30
LRegSet.hs 34 19
Label.hs 96 56
LateCC.hs 62 15
Layout.hs 773 464
LayoutStack.hs 759 478
Lazy.hs 49 29
Lexeme.hs 147 93
LiberateCase.hs 334 140
Lift.hs 137 133
Linear.hs 600 394
Linker.hs 170 77
Lint.hs 3336 1185
ListComp.hs 414 251
Lit.hs 338 136
Literal.hs 1274 528
Literals.hs 943 220
Liveness.hs 778 461
Llvm.hs 29 34
LlvmConfigCache.hs 14 12
Load.hs 866 352
Loader.hs 1463 678
Location.hs 54 62
LogQueue.hs 87 36
Logger.hs 417 228
MacOS.hs 119 57
MachOp.hs 520 199
Main.hs 1601 796
Make.hs 4581 2302
MakeFile.hs 257 195
Mangler.hs 92 54
Map.hs 160 54
Match.hs 1610 775
Maybe.hs 85 43
MemoFun.hs 18 3
Meta.hs 37 16
MetaData.hs 18 70
Misc.hs 948 548
ModDetails.hs 32 19
ModGuts.hs 78 70
ModIface.hs 359 215
ModInfo.hs 78 59
ModSummary.hs 115 81
Module.hs 4068 1940
Monad.hs 5624 2741
Multiplicity.hs 256 80
Name.hs 552 366
Names.hs 3695 1287
NoRegs.hs 4 5
Node.hs 374 352
OccurAnal.hs 2316 1033
Occurrence.hs 641 286
Ops.hs 429 270
Opt.hs 1149 531
OrdList.hs 201 52
Origin.hs 834 557
Outputable.hs 911 579
PIC.hs 465 406
PPC.hs 88 38
Pair.hs 42 24
Panic.hs 204 115
Parser.hs 86 22
Pat.hs 2363 1251
PatSyn.hs 1332 482
Phases.hs 282 93
Pipeline.hs 1663 920
PkgQual.hs 25 16
Plain.hs 87 65
Platform.hs 225 141
Plugin.hs 124 70
Plugins.hs 305 211
Pmc.hs 305 179
PostProcess.hs 2328 828
Ppr.hs 9834 2522
Predicate.hs 257 130
Prelude.hs 66 34
Prep.hs 1549 715
Prim.hs 3380 1146
PrimOps.hs 569 237
ProcPoint.hs 353 144
Process.hs 286 123
Prof.hs 280 138
ProfAuto.hs 12 3
Profile.hs 29 24
Quote.hs 2230 842
RISCV64.hs 5 5
Rank.hs 31 9
Reader.hs 889 487
RecWalk.hs 65 36
Recomp.hs 1074 557
Reduction.hs 508 384
Reg.hs 144 95
RegInfo.hs 103 77
Regs.hs 798 370
Rename.hs 504 243
Rep.hs 1393 678
RepType.hs 471 205
Rewrite.hs 1039 542
RoughMap.hs 326 125
Rule.hs 358 146
Rules.hs 1115 491
S390X.hs 5 5
SDFM.hs 54 67
SafeHaskell.hs 64 22
Seq.hs 83 33
Sequel.hs 19 27
Session.hs 3694 1373
Set.hs 536 317
SetLevels.hs 1296 522
SetOps.hs 150 84
Settings.hs 238 42
Setup.hs 116 21
Shape.hs 151 124
Sig.hs 631 249
SimpleOpt.hs 977 471
Simplify.hs 2987 1313
Sink.hs 448 506
SmallArray.hs 65 27
Solver.hs 3602 1666
SourceError.hs 42 34
SourceFile.hs 40 45
SourceText.hs 198 126
SpecConstr.hs 1836 856
Specialise.hs 2142 1032
Spill.hs 231 151
SpillClean.hs 326 289
SpillCost.hs 161 159
Splice.hs 2886 1059
SrcLoc.hs 562 369
StackMap.hs 26 35
State.hs 1486 980
Static.hs 200 100
StaticArgs.hs 329 105
StaticPtrTable.hs 168 108
Stats.hs 680 269
Status.hs 25 22
StgToByteCode.hs 1460 645
StgToCmm.hs 240 119
Stream.hs 70 73
Strict.hs 110 74
StringBuffer.hs 274 146
Subst.hs 1267 664
Supply.hs 247 137
Switch.hs 225 267
Syntax.hs 3075 996
SysTools.hs 109 57
TH.hs 856 279
TagCheck.hs 124 56
TagSig.hs 44 22
Target.hs 142 58
Tasks.hs 296 85
TcMType.hs 1921 879
TcType.hs 1633 917
Terminal.hs 79 26
ThToHs.hs 1758 500
Tickish.hs 163 220
Ticks.hs 966 302
Ticky.hs 636 270
Tidy.hs 1374 722
TmpFs.hs 280 125
Trace.hs 63 25
TrieMap.hs 322 131
TrivColorable.hs 168 105
TyCl.hs 3741 1646
TyCon.hs 1907 1083
TyThing.hs 209 106
Type.hs 6667 3439
TypeEnv.hs 78 18
Typeable.hs 748 238
Types.hs 8949 5201
UnVar.hs 134 47
Unarise.hs 585 301
Unbound.hs 329 112
Unfold.hs 1029 466
Unify.hs 3036 1375
UnionFind.hs 59 32
Unique.hs 182 135
Uniques.hs 258 121
Unit.hs 312 116
Unsafe.hs 12 8
Usage.hs 251 107
UsageEnv.hs 72 30
Utils.hs 10532 4802
Validity.hs 1968 848
Var.hs 604 336
Warnings.hs 100 57
Ways.hs 155 115
Weight.hs 69 9
Windows.hs 49 18
WorkWrap.hs 739 322
X86.hs 194 87
X86_64.hs 34 22
Zonk.hs 1490 440
TOTAL: 299177 141147
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment