Skip to content
  • Matthew Pickering's avatar
    4d34bf15
    Don't use implicit lifting when deriving Lift · 4d34bf15
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    It isn't much more complicated to be more precise when deriving Lift so
    we now generate
    
    ```
    data Foo = Foo Int Bool
    
    instance Lift Foo where
      lift (Foo a b) = [| Foo $(lift a) $(lift b) |]
      liftTyped (Foo a b) = [|| Foo $$(lift a) $$(lift b) |]
    ```
    
    This fixes #20688 which complained about using implicit lifting in the
    derived code.
    4d34bf15
    Don't use implicit lifting when deriving Lift
    Matthew Pickering authored and Marge Bot's avatar Marge Bot committed
    It isn't much more complicated to be more precise when deriving Lift so
    we now generate
    
    ```
    data Foo = Foo Int Bool
    
    instance Lift Foo where
      lift (Foo a b) = [| Foo $(lift a) $(lift b) |]
      liftTyped (Foo a b) = [|| Foo $$(lift a) $$(lift b) |]
    ```
    
    This fixes #20688 which complained about using implicit lifting in the
    derived code.
Loading