Skip to content
  • sheaf's avatar
    SimpleOpt: beta-reduce through casts · 2ff18e39
    sheaf authored and Marge Bot's avatar Marge Bot committed
    The simple optimiser would sometimes fail to
    beta-reduce a lambda when there were casts
    in between the lambda and its arguments.
    This can cause problems because we rely on
    representation-polymorphic lambdas getting
    beta-reduced away (for example, those
    that arise from newtype constructors with
    representation-polymorphic arguments, with
    UnliftedNewtypes).
    2ff18e39