[GHC] #11507: `GHC.Base.eqString`'s documentation is messed up
#11507: `GHC.Base.eqString`'s documentation is messed up -------------------------------------+------------------------------------- Reporter: czipperz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 Keywords: | Operating System: Unknown/Multiple Architecture: | Type of failure: None/Unknown Unknown/Multiple | Test Case: | Blocked By: Blocking: | Related Tickets: Differential Rev(s): | Wiki Page: -------------------------------------+------------------------------------- Reads: {{{#!hs {-# RULES "eqString" (==) = eqString #-} -- eqString also has a BuiltInRule in PrelRules.lhs: -- eqString (unpackCString# (Lit s1)) (unpackCString# (Lit s2) = s1==s2 }}} The problem is that the string at `(unpackCString# (Lit s2) =` is unclosed (should be `(unpackCString# (Lit s2))`). -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11507> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11507: `GHC.Base.eqString`'s documentation is messed up -------------------------------------+------------------------------------- Reporter: czipperz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 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: | -------------------------------------+------------------------------------- @@ -12,0 +12,3 @@ + + Saw at + http://hackage.haskell.org/package/base-4.8.2.0/docs/src/GHC.Base.html New description: Reads: {{{#!hs {-# RULES "eqString" (==) = eqString #-} -- eqString also has a BuiltInRule in PrelRules.lhs: -- eqString (unpackCString# (Lit s1)) (unpackCString# (Lit s2) = s1==s2 }}} The problem is that the string at `(unpackCString# (Lit s2) =` is unclosed (should be `(unpackCString# (Lit s2))`). Saw at http://hackage.haskell.org/package/base-4.8.2.0/docs/src/GHC.Base.html -- Comment (by czipperz): http://hackage.haskell.org/package/base-4.8.2.0/docs/src/GHC.Base.html -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11507#comment:1> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11507: `GHC.Base.eqString`'s documentation is messed up -------------------------------------+------------------------------------- Reporter: czipperz | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 7.10.3 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 Thomas Miedema <thomasmiedema@…>): In [changeset:"0dd663ba9111d78be116480e2f75bc272f3adc90/ghc" 0dd663ba/ghc]: {{{ #!CommitTicketReference repository="ghc" revision="0dd663ba9111d78be116480e2f75bc272f3adc90" Add closing parenthesis in comment for eqString (#11507) Spotted by czipperz }}} -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11507#comment:2> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
#11507: `GHC.Base.eqString`'s documentation is messed up -------------------------------------+------------------------------------- Reporter: czipperz | Owner: Type: bug | Status: closed Priority: normal | Milestone: 8.2.1 Component: Compiler | Version: 7.10.3 Resolution: fixed | 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: | -------------------------------------+------------------------------------- Changes (by thomie): * status: new => closed * resolution: => fixed * milestone: => 8.2.1 Comment: Thanks. -- Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/11507#comment:3> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler
participants (1)
-
GHC