Skip to content
  • Facundo Domínguez's avatar
    Improve the error messages for static forms. · e9dfb6e5
    Facundo Domínguez authored and Ben Gamari's avatar Ben Gamari committed
    Now the message explains why closed variables are not closed when
    encountered in the body of (static ...).
    
    This required adding to the local environment the free variables of
    the local bindings in scope. Thus we can analyze and explain why a
    variable is not closed when encountered.
    
    Test Plan: ./validate
    
    Reviewers: austin, simonpj, bgamari
    
    Reviewed By: bgamari
    
    Subscribers: mboes, thomie
    
    Differential Revision: https://phabricator.haskell.org/D2167
    
    GHC Trac Issues: #12003
    e9dfb6e5