[commit: ghc] master: Add Fixity info for infix types (575abf4)
git at git.haskell.org
git at git.haskell.org
Wed Aug 5 12:44:13 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/575abf42e218925e456bf765abb14f069ac048a0/ghc
>---------------------------------------------------------------
commit 575abf42e218925e456bf765abb14f069ac048a0
Author: RyanGlScott <ryan.gl.scott at gmail.com>
Date: Wed Aug 5 14:24:08 2015 +0200
Add Fixity info for infix types
Template Haskell allows reification of fixity for infix functions and
data constructors, and not for infix types. This adds a `Fixity` field
to the relevant `Info` constructors that can have infix types (`ClassI`,
`TyConI`, and `FamilyI`).
I don't think that `VarI` or `PrimTyConI` can be infix, but I could be
wrong.
Test Plan: ./validate
Reviewers: austin, goldfire, bgamari
Reviewed By: goldfire, bgamari
Subscribers: thomie
Differential Revision: https://phabricator.haskell.org/D1109
GHC Trac Issues: #10704
>---------------------------------------------------------------
575abf42e218925e456bf765abb14f069ac048a0
compiler/typecheck/TcSplice.hs | 14 ++++----
docs/users_guide/7.12.1-notes.xml | 11 ++++++
libraries/template-haskell/Language/Haskell/TH.hs | 2 ++
.../template-haskell/Language/Haskell/TH/Ppr.hs | 14 ++++----
.../template-haskell/Language/Haskell/TH/Syntax.hs | 12 +++++--
testsuite/tests/th/T10704.hs | 24 +++++++++++++
testsuite/tests/th/T10704.stdout | 16 +++++++++
testsuite/tests/th/T10704a.hs | 21 ++++++++++++
testsuite/tests/th/T1849.script | 2 +-
testsuite/tests/th/T2222.hs | 10 +++---
testsuite/tests/th/T5358.hs | 2 +-
testsuite/tests/th/T5358.stderr | 6 ++--
testsuite/tests/th/TH_reifyDecl1.hs | 40 +++++++++++-----------
testsuite/tests/th/TH_reifyDecl1.stderr | 1 -
testsuite/tests/th/all.T | 4 +++
15 files changed, 129 insertions(+), 50 deletions(-)
Diff suppressed because of size. To see it, use:
git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 575abf42e218925e456bf765abb14f069ac048a0
More information about the ghc-commits
mailing list