Ticket #1169 (closed proposal: fixed)

Opened 6 years ago

Last modified 4 years ago

Control.Monad.Cont documentation

Reported by: Andriy Owned by: Andriy
Priority: normal Milestone: Not GHC
Component: libraries (other) Version: 6.6
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: Difficulty: Moderate (less than a day)
Test Case: Blocked By:
Blocking: Related Tickets:

Description

Currently this important monad module does not have any haddock comment.

Per Jeff Newbern's gracious permission included relevant information from his cool tutorial "All About Monads"  http://www.nomaware.com/monads/, created a couple of examples.

Attachments

Cont.hs Download (8.9 KB) - added by Andriy 6 years ago.
Version 3 of the module source. Minor improvements.
Control-Monad-Cont.html Download (22.0 KB) - added by Andriy 6 years ago.
Version 3 of the Haddock output
Class.hs Download (3.1 KB) - added by guest 6 years ago.
Version 4 of the module source. Accomodated latest Cont changes.
Cont.2.hs Download (7.5 KB) - added by guest 6 years ago.
Version 4 of the module source. Accomodated latest Cont changes.
Control-Monad-Cont.2.html Download (18.5 KB) - added by guest 6 years ago.
Version 4 of the Haddock output
Control-Monad-Cont-Class.html Download (10.0 KB) - added by guest 6 years ago.
Version 4 of the Haddock output
ContDoc.patch Download (10.5 KB) - added by guest 6 years ago.
The patch. Version 4 of the module source. Accomodated latest Cont changes.

Change History

Changed 6 years ago by Andriy

  • owner set to Andriy
  • status changed from new to assigned

The discussion deadline - 2 weeks (due on March 9th).

Changed 6 years ago by Andriy

  • component changed from libraries/base to libraries (other)

Changed 6 years ago by Andriy

Version 3 of the module source. Minor improvements.

Changed 6 years ago by Andriy

Version 3 of the Haddock output

Changed 6 years ago by simonmar

The proposed Cont.hs doesn't compile:

../../compiler/ghc-inplace -H16m -O -Wall -fglasgow-exts -package-name  mtl-1.0 -O2 -fasm -dcore-lint -fgenerics  -package base -fgenerics -split-objs    -c Control/Monad/Cont.hs -o Control/Monad/Cont.o  -ohi Control/Monad/Cont.hi

Control/Monad/Cont.hs:173:37:
    Not in scope: type constructor or class `ReaderT'

Control/Monad/Cont.hs:174:12:
    Not in scope: data constructor `ReaderT'

Control/Monad/Cont.hs:176:2: Not in scope: `runReaderT'

Control/Monad/Cont.hs:176:23:
    Not in scope: data constructor `ReaderT'

Control/Monad/Cont.hs:178:37:
    Not in scope: type constructor or class `StateT'

Control/Monad/Cont.hs:179:12:
    Not in scope: data constructor `StateT'

Control/Monad/Cont.hs:181:2: Not in scope: `runStateT'

Control/Monad/Cont.hs:181:22:
    Not in scope: data constructor `StateT'

Control/Monad/Cont.hs:183:10:
    Not in scope: type constructor or class `Monoid'

Control/Monad/Cont.hs:183:47:
    Not in scope: type constructor or class `WriterT'

Control/Monad/Cont.hs:184:12:
    Not in scope: data constructor `WriterT'

Control/Monad/Cont.hs:186:2: Not in scope: `runWriterT'

Control/Monad/Cont.hs:186:23:
    Not in scope: data constructor `WriterT'

Control/Monad/Cont.hs:186:39: Not in scope: `mempty'

Control/Monad/Cont.hs:188:10:
    Not in scope: type constructor or class `Monoid'

Control/Monad/Cont.hs:191:46: Not in scope: `mempty'

Changed 6 years ago by guest

Version 4 of the module source. Accomodated latest Cont changes.

Changed 6 years ago by guest

Version 4 of the module source. Accomodated latest Cont changes.

Changed 6 years ago by guest

Version 4 of the Haddock output

Changed 6 years ago by guest

Version 4 of the Haddock output

Changed 6 years ago by guest

The patch. Version 4 of the module source. Accomodated latest Cont changes.

Changed 6 years ago by igloo

  • status changed from assigned to closed
  • resolution set to fixed

Applied, thanks!

Changed 5 years ago by simonmar

  • architecture changed from Multiple to Unknown/Multiple

Changed 5 years ago by simonmar

  • os changed from Multiple to Unknown/Multiple

Changed 4 years ago by simonmar

  • difficulty changed from Moderate (1 day) to Moderate (less than a day)
Note: See TracTickets for help on using tickets.