[Haskell-beginners] Converting a data type to an abstract data type
Ryan Warner
ryan.warner.mn+haskell at gmail.com
Mon Sep 14 18:23:08 UTC 2015
I had defined a data type similar to the following:
data Record = Record { name :: String, age :: Int }
Later, I realized I needed it be an ADT defined like:
data Record a = Record { name :: String, age :: Int, resource :: a }
The change turned out to be fairly well contained and probably only took me
a half hour to propagate up. However, I see the potential for this to be a
bigger job. Are there any editors that automate that kind of refactoring?
-Ryan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/beginners/attachments/20150914/74dd2748/attachment.html>
More information about the Beginners
mailing list