Move isJoinId, isJoinId_maybe to Id
authorSimon Peyton Jones <simonpj@microsoft.com>
Wed, 1 Mar 2017 01:39:02 +0000 (20:39 -0500)
committerDavid Feuer <David.Feuer@gmail.com>
Wed, 1 Mar 2017 01:39:03 +0000 (20:39 -0500)
commit2ab6ce783de9455369c12bb17afb4f596bb6ef06
treeb0556ece31eebbc8f9dcec62d2b022d85baafd04
parent777b77077f3d6b794f96414a16e904452e1e6aba
Move isJoinId, isJoinId_maybe to Id

This is just a refactoring, moving these two functions where
they belong.

The reason they were there was because of the use of isJoinId_maybe
in the OutputableBndr instance of TaggedBndr, which was in CoreSyn.
I moved it to PprCore, to join the OutputableBndr instance for
Var.  That makes more sense anyway.

Reviewers: austin, bgamari

Reviewed By: bgamari

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D3207
compiler/basicTypes/Id.hs
compiler/basicTypes/IdInfo.hs-boot
compiler/basicTypes/Var.hs
compiler/coreSyn/CoreSyn.hs
compiler/coreSyn/PprCore.hs
compiler/simplCore/CSE.hs
compiler/simplCore/FloatIn.hs