Skip to content

Commit

Permalink
Using State Monad to track names during translation from GHC Core
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill Hallahan committed Oct 6, 2023
1 parent a7e7159 commit 80a2f77
Show file tree
Hide file tree
Showing 3 changed files with 258 additions and 241 deletions.
2 changes: 1 addition & 1 deletion src/G2/Initialization/KnownValues.hs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ superClassExtractor tc tc_n sc_n =
case lookupTCClass tc_n tc of
Just c
| Just (_, i) <- find extractsSC (superclasses c) -> idName i
| otherwise -> error $ "superClassExtractor: Extractor not found " ++ show (superclasses c)
| otherwise -> error $ "superClassExtractor: Extractor not found\n" ++ show sc_n ++ "\n" ++ show (superclasses c)
Nothing -> error $ "superClassExtractor: Class not found " ++ show tc_n
where
extractsSC (t, _) =
Expand Down
Loading

0 comments on commit 80a2f77

Please sign in to comment.