[GHC] #9250: let makes function too much specific

GHC ghc-devs at haskell.org
Mon Jun 30 07:10:05 UTC 2014


#9250: let makes function too much specific
------------------------------------------------+--------------------------
        Reporter:  KommuSoft                    |            Owner:
            Type:  bug                          |           Status:  closed
        Priority:  low                          |        Milestone:
       Component:  Compiler                     |          Version:  7.6.3
      Resolution:  invalid                      |         Keywords:
Operating System:  Unknown/Multiple             |     Architecture:  x86_64
 Type of failure:  Incorrect result at runtime  |  (amd64)
       Test Case:                               |       Difficulty:
        Blocking:                               |  Unknown
                                                |       Blocked By:
                                                |  Related Tickets:
------------------------------------------------+--------------------------
Changes (by simonpj):

 * status:  new => closed
 * resolution:   => invalid


Comment:

 There are good answers on !StackOverflow.  I believe, though you do not
 say so, that you are describing GHCi.  `let` does generalisation, subject
 to the monomorphism restriction (like all top level bindings); `:type`
 ignores the monomorphism restriction (it isn't a top level binding).

 Do re-open if you think there is a bug here.

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


More information about the ghc-tickets mailing list