[GHC] #14184: Examples with language extensions

#14184: Examples with language extensions -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: feature | Status: new request | Priority: normal | Milestone: Component: Documentation | Version: 8.2.1 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: -------------------------------------+------------------------------------- Are we okay with examples in the GHC user guide uses language extensions? The documentation has [https://downloads.haskell.org/~ghc/master/users- guide/glasgow_exts.html#record-constructors this code] {{{#!hs inc :: Counter a -> Counter a inc (NewCounter x i d t) = NewCounter { _this = i x, _inc = i, _display = d, tag = t } }}} which could be written {{{#!hs inc :: Counter a -> Counter a inc NewCounter{..} = NewCounter{ _this = _inc _this, .. } }}} if we're okay with that tradeoff. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14184 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14184: Examples with language extensions -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: feature request | Status: new Priority: normal | Milestone: Component: Documentation | 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): I personally think that extensions should be used when describing themselves or nearby features, but otherwise avoided in the manual. I also believe that record wildcards are less used than some other extensions and may be unfamiliar to readers. Thus, I advocate not making this change. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14184#comment:1 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler

#14184: Examples with language extensions -------------------------------------+------------------------------------- Reporter: Iceland_jack | Owner: (none) Type: feature request | Status: closed Priority: normal | Milestone: Component: Documentation | Version: 8.2.1 Resolution: wontfix | 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 Iceland_jack): * status: new => closed * resolution: => wontfix -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14184#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler
participants (1)
-
GHC