diff options
author | Matthew Pickering <matthewtpickering@gmail.com> | 2015-08-18 18:07:18 +0200 |
---|---|---|
committer | Ben Gamari <bgamari.foss@gmail.com> | 2015-08-18 12:32:28 -0400 |
commit | 18a15679ad6727c36b799da7c3b2a38be2001c4a (patch) | |
tree | 7d936cabd631063f69f6bdda8e8a4474f78bc655 /compiler/types/TyCon.hs-boot | |
parent | ebca3f80b9deb50bda1e3913b969785b27d92b4e (diff) | |
download | haskell-18a15679ad6727c36b799da7c3b2a38be2001c4a.tar.gz |
Add selectors for common fields (DataCon/PatSyn) to ConLike
When pattern synonyms were introduced a new sum type was used
in places where DataCon used to be used. PatSyn and DataCon share many
of the same fields, this patch adds selectors to ConLike for these
fields.
Reviewers: austin, goldfire, bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1154
Diffstat (limited to 'compiler/types/TyCon.hs-boot')
-rw-r--r-- | compiler/types/TyCon.hs-boot | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/types/TyCon.hs-boot b/compiler/types/TyCon.hs-boot index 5d27fa0bc9..c2855adbfa 100644 --- a/compiler/types/TyCon.hs-boot +++ b/compiler/types/TyCon.hs-boot @@ -4,6 +4,7 @@ import Name (Name) import Unique (Unique) data TyCon +type FieldLabel = Name tyConName :: TyCon -> Name tyConUnique :: TyCon -> Unique |