[GHC] #11551: Get doctests into testsuite

GHC ghc-devs at haskell.org
Sat Feb 6 23:36:47 UTC 2016


#11551: Get doctests into testsuite
-------------------------------------+-------------------------------------
           Reporter:  lwm            |             Owner:
               Type:  task           |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Core           |           Version:  7.10.3
  Libraries                          |
           Keywords:                 |  Operating System:  Unknown/Multiple
  documentation, doctest             |
       Architecture:                 |   Type of failure:  Documentation
  Unknown/Multiple                   |  bug
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 It seems like a bit of a shame not to have Mr.Orlitzky's lovely doctests
 not running with the testsuite. Or perhaps to at least have some sort of
 `make doctest`. If there is some interest to get this working, I'd like to
 take a look at submitting a patch.

 Here are the previous documentation patches I can find:
 https://phabricator.haskell.org/p/mjo/

 I can see the following files that have doctests:

 {{{
 ruby-2.2.1 ~/work/contributing/ghc (master) [12:35:44]
 lwm$ grep -R "=== __Examples__" libraries/base/ | uniq
 grep: libraries/base/Data/Maybe.hs:-- ==== __Examples__
 libraries/base/Data/Either.hs:-- ==== __Examples__
 libraries/base/Data/List.hs:-- ==== __Examples__
 libraries/base/Data/Functor.hs:-- ==== __Examples__
 libraries/base/Data/Bool.hs:-- ==== __Examples__
 libraries/base/Data/Char.hs:-- ==== __Examples__
 libraries/base/GHC/Unicode.hs:-- ==== __Examples__
 libraries/base/Text/Printf.hs:-- ==== __Examples__
 }}}

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


More information about the ghc-tickets mailing list