Skip to content
  • Simon Peyton Jones's avatar
    Make mkDFunUnfolding more robust · 3e0a7b9f
    Simon Peyton Jones authored
    It now uses tcSplitDFunTy, which is designed for the purpose and
    allows arbitrary argument types to the dfun, rather than
    tcSplitSigmaTy.  This generality is used in DPH, which has
    internally-generated dfuns with impliciation-typed arguments.
    
    To do this I had to make tcSplitDFunTy return the number of
    arguments, so there are some minor knock-on effects in other
    modules.
    3e0a7b9f