packages feed

haskell-tools-refactor-0.4.1.1: examples/Refactor/ExtractBinding/RecordWildcards_res.hs

{-# LANGUAGE RecordWildCards #-}
module Refactor.ExtractBinding.RecordWildcards where

data Point = Point { x :: Double, y :: Double }

d = plus (Point 1 2)
  where plus (Point {..}) = x + y