Skip to content
  • Ben Gamari's avatar
    DsExpr: Rip out static/dynamic check in list desugaring · 0db05941
    Ben Gamari authored and Ben Gamari's avatar Ben Gamari committed
    Previously we would try to break explicit lists into a dynamic prefix
    and static tail and desugar the former into a `build` expression.
    Unfortunately, this heuristic resulted in surprising behavior
    (see #11710) and wasn't pulling its weight. Here we drop it (along with
    the `-fsimple-list-literals` flag), leaving only the list length
    heuristic to determine whether `build` or cons list desugaring should be
    used.
    
    Test Plan: Validate
    
    Reviewers: simonpj, austin
    
    Reviewed By: simonpj
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D2023
    
    GHC Trac Issues: #11710
    0db05941