|
[GHC] #777: Typos in user guide example: msg#00108lang.haskell.glasgow.bugs
#777: Typos in user guide example ----------------------------+----------------------------------------------- Reporter: guest | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Documentation | Version: 6.5 Severity: normal | Keywords: Difficulty: Easy (1 hr) | Architecture: Unknown Os: Unknown | ----------------------------+----------------------------------------------- In section "7.4.1.3 Liberalised type synonyms" of the user guide i find the following example: type Discard a = forall b. Show b => a -> b -> (a, String) f :: Discard a f x y = (x, show y) g :: 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.. -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/777> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler_______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@xxxxxxxxxxx http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: [GHC] #773: garbage collector bug?, GHC |
|---|---|
| Next by Date: | [GHC] #778: memory leak, GHC |
| Previous by Thread: | [GHC] #776: GHCi 6.4.2 reports an internal error: unknown/strange object, GHC |
| Next by Thread: | [GHC] #778: memory leak, GHC |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |