@@ -36,7 +36,7 @@ compile packageName canonicalImports interfaces source =
37 -- Parse the source code
37 -- Parse the source code
38 validModule <-
38 validModule <-
39− Result.format Error.Syntax $
39+ Result.format Error.Syntax $ {-# SCC parsing #-}
40 Parse.program packageName (getOpTable interfaces) source
40 Parse.program packageName (getOpTable interfaces) source
42 -- Canonicalize all variables, pinning down where they came from.
42 -- Canonicalize all variables, pinning down where they came from.
@@ -45,7 +45,7 @@ compile packageName canonicalImports interfaces source =
46 -- Run type inference on the program.
46 -- Run type inference on the program.
48− Result.from Error.Type $
48+ Result.from Error.Type $ {-# SCC type_inference #-}
49 TI.infer interfaces canonicalModule
49 TI.infer interfaces canonicalModule
51 -- One last round of checks
51 -- One last round of checks
@@ -55,11 +55,11 @@ compile packageName canonicalImports interfaces source =
55 Can.toSortedDefs (Module.program (Module.info canonicalModule))
55 Can.toSortedDefs (Module.program (Module.info canonicalModule))
57 tagDict <-
57 tagDict <-
58− Result.format Error.Pattern $
58+ Result.format Error.Pattern $ {-# SCC exhaustiveness #-}
59 Nitpick.patternMatches interfaces canonicalModule
59 Nitpick.patternMatches interfaces canonicalModule
61 -- Do some basic optimizations
61 -- Do some basic optimizations
62− let optimisedDefs =
62+ let optimisedDefs = {-# SCC optimization #-}
63 Optimize.optimize tagDict (Module.name canonicalModule) canonicalDefs
63 Optimize.optimize tagDict (Module.name canonicalModule) canonicalDefs
65 -- Add the real list of types
65 -- Add the real list of types