[GHC] #13145: Documentation shouldn't call things functions that aren't functions

GHC ghc-devs at haskell.org
Thu Jan 19 18:23:47 UTC 2017


#13145: Documentation shouldn't call things functions that aren't functions
-------------------------------------+-------------------------------------
        Reporter:  chris-martin      |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  libraries/base    |              Version:  8.0.1
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Documentation     |  Unknown/Multiple
  bug                                |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by Yuras):

 You can go ahead and submit a patch because my opinion is just an opinion.
 Or you can drop a message to [https://mail.haskell.org/cgi-
 bin/mailman/listinfo/haskell-prime haskell-prime] mailing list and see
 what people think about that.

 I think your definition is a bit naive because the same (polymorphic)
 value will or will not be a function depending on a context:

 {{{
 Prelude> let func = pure 5 :: Applicative m => m Int
 Prelude> func
 5
 Prelude> func 12
 5
 Prelude>
 }}}

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


More information about the ghc-tickets mailing list