[Haskell-cafe] Field types

David Feuer david.feuer at gmail.com
Mon Sep 20 17:13:43 UTC 2021


Does one field name for one datatype always refer to a field with the same
type? Or is there some wacky extension that would allow things like

data Foo
  = Bar { zoom :: Int }
  | Baz { zoom :: Char }

I'm hoping I don't have to worry about the latter possibility....
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20210920/8e1d5c60/attachment.html>


More information about the Haskell-Cafe mailing list