Opened 11 years ago

Closed 11 years ago

Last modified 8 years ago

#777 closed bug (fixed)

Typos in user guide example

Reported by: guest Owned by:
Priority: normal Milestone:
Component: Documentation Version: 6.5
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Test Case:
Blocked By: Blocking:
Related Tickets: Differential Rev(s):
Wiki Page:


In section " Liberalised type synonyms" of the user guide i find the following example:

type Discard a = forall b. Show b => a -> b -> (a, String)

Discard a f x y = (x, show y)
Discard Int -> (Int,Bool) -- A rank-2 type g f = f Int True

It seems like that Bool should be String.. and that Int should be an actual number? I am new to haskell.. so I might just be missing something here..

Change History (4)

comment:1 Changed 11 years ago by simonpj

Resolution: fixed
Status: newclosed

Good point. Now fixed, thank you.


comment:2 Changed 9 years ago by simonmar

Architecture: UnknownUnknown/Multiple

comment:3 Changed 9 years ago by simonmar

Operating System: UnknownUnknown/Multiple

comment:4 Changed 8 years ago by simonmar

difficulty: Easy (1 hr)Easy (less than 1 hour)
Note: See TracTickets for help on using tickets.