haskell-tools-refactor-0.4.1.1: examples/Refactor/RenameDefinition/RecordField.hs
module Refactor.RenameDefinition.RecordField where
data Point = Point { x :: Double, y :: Double }
distance :: Point -> Point -> Double
distance p1 p2 = sqrt ((x p1 - x p2) ^ 2 + (y p1 - y p2) ^ 2)