[GHC] #14527: Warn on recursive bindings

GHC ghc-devs at haskell.org
Tue Nov 28 15:26:09 UTC 2017


#14527: Warn on recursive bindings
-------------------------------------+-------------------------------------
        Reporter:  chrisdone         |                Owner:  (none)
            Type:  feature request   |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  None/Unknown      |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by goldfire):

 So, `ones = 1 : ones` wouldn't be warned? I suppose that's OK, but I would
 prefer that such a definition is indeed warned (without a `~`).

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14527#comment:14>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list