[GHC] #12167: <<loop>> when zip + unzipping a shadowed Vector type variable

GHC ghc-devs at haskell.org
Wed Jun 8 14:02:13 UTC 2016


#12167: <<loop>> when zip + unzipping a shadowed Vector type variable
-------------------------------------+-------------------------------------
        Reporter:  markog            |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  7.10.3
      Resolution:                    |             Keywords:
Operating System:  Windows           |         Architecture:  x86_64
 Type of failure:  Incorrect result  |  (amd64)
  at runtime                         |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by markog):

 Well, I believe you if you say so, but I do not exactly see how. I can
 sort of see it. I forgot that Haskell does not read from the top down.

 {{{
         (x,d) = xd
         xd =
           V.zip x d
           |> V.unzip
 }}}

 The above is a valid code fragment in Haskell while in F# it would not see
 the xd on the first line. I'll be more careful about shadowing in the
 future.

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


More information about the ghc-tickets mailing list