Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
6368 commits behind the upstream repository.
  • Simon Peyton Jones's avatar
    8fe274e2
    Fixes to dealing with the export of main · 8fe274e2
    Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
    It's surprisingly tricky to deal with 'main' (#19397). This
    patch does quite bit of refactoring do to it right. Well,
    more-right anyway!
    
    The moving parts are documented in GHC.Tc.Module
       Note [Dealing with main]
    
    Some other oddments:
    
    * Rename tcRnExports to rnExports; no typechecking here!
    
    * rnExports now uses checkNoErrs rather than failIfErrsM;
      the former fails only if rnExports itself finds errors
    
    * Small improvements to tcTyThingCategory, which ultimately
      weren't important to the patch, but I've retained as
      a minor improvement.
    8fe274e2
    History
    Fixes to dealing with the export of main
    Simon Peyton Jones authored and Marge Bot's avatar Marge Bot committed
    It's surprisingly tricky to deal with 'main' (#19397). This
    patch does quite bit of refactoring do to it right. Well,
    more-right anyway!
    
    The moving parts are documented in GHC.Tc.Module
       Note [Dealing with main]
    
    Some other oddments:
    
    * Rename tcRnExports to rnExports; no typechecking here!
    
    * rnExports now uses checkNoErrs rather than failIfErrsM;
      the former fails only if rnExports itself finds errors
    
    * Small improvements to tcTyThingCategory, which ultimately
      weren't important to the patch, but I've retained as
      a minor improvement.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
T11970B.hs 53 B