[GHC] #8505: Arrows example error

#8505: Arrows example error ------------------------------------+-------------------------------------- Reporter: pdfrod | Owner: Type: bug | Status: new Priority: low | Milestone: Component: Documentation | Version: 7.6.3 Keywords: | Operating System: Unknown/Multiple Architecture: Unknown/Multiple | Type of failure: Documentation bug Difficulty: Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | ------------------------------------+-------------------------------------- In the section '''7.15.2. Conditional commands''' of the User's Guide (http://www.haskell.org/ghc/docs/7.6.3/html/users_guide/arrow- notation.html#idp49515792) it is stated that: {{{ proc (x,y) -> if f x y then g -< x+1 else h -< y+2 }}} is translated to: {{{ arr (\ (x,y) -> if f x y then Left x else Right y) >>> (arr (\x -> x+1) >>> f) ||| (arr (\y -> y+2) >>> g) }}} But this translation doesn't seem correct, because the arrows ''g'' and ''h'' are not being used as in the original code (''h'' doesn't appear at all in the translation). -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8505 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8505: Arrows example error --------------------------------------+------------------------------------ Reporter: pdfrod | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Documentation | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by pdfrod): * priority: low => normal -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8505#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8505: Arrows example error --------------------------------------+------------------------------------ Reporter: pdfrod | Owner: Type: bug | Status: patch Priority: highest | Milestone: 7.8.1 Component: Documentation | Version: 7.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by simonpj): * priority: normal => highest * status: new => patch * milestone: => 7.8.1 Comment: Thanks! Patch looks correct to me. Austin, please apply. Simon -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8505#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8505: Arrows example error --------------------------------------+------------------------------------ Reporter: pdfrod | Owner: Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Documentation | Version: 7.6.3 Resolution: fixed | Keywords: Operating System: Unknown/Multiple | Architecture: Unknown/Multiple Type of failure: Documentation bug | Difficulty: Unknown Test Case: | Blocked By: Blocking: | Related Tickets: --------------------------------------+------------------------------------ Changes (by thoughtpolice): * status: patch => closed * resolution: => fixed Comment: Merged, thanks! -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8505#comment:3 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#8505: Arrows example error -------------------------------------+------------------------------------- Reporter: pdfrod | Owner: (none) Type: bug | Status: closed Priority: highest | Milestone: 7.8.1 Component: Documentation | Version: 7.6.3 Resolution: fixed | Keywords: Arrows Operating System: Unknown/Multiple | Architecture: Type of failure: Documentation | Unknown/Multiple bug | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Changes (by simonpj): * keywords: => Arrows -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/8505#comment:4 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC