|
RE: Return signatures in case expressions: msg#00008lang.haskell.glasgow.bugs
On 04 August 2004 16:50, Volodimir Rudenko wrote: > "Pattern type signatures, including the result part, can be > used in case expressions: > case e of { (x::a, y) :: a -> x } ". > > On the other hand, Subsection 7.4.10.4. 'Result type signatures' does > not mention 'the case of case expressions' (sorry for pun). That example isn't quite right. Extra parentheses are needed: case e of { ((x::a, y) :: a) -> x } I've fixed the docs. Cheers, Simon
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [ ghc-Bugs-997511 ] Options -no-hs-main -debug cause 'impossible' to happen, SourceForge.net |
|---|---|
| Next by Date: | RE: -fvia-c -O generates mal-typed C code (casts double via unsignedint), Simon Marlow |
| Previous by Thread: | Return signatures in case expressions, Volodimir Rudenko |
| Next by Thread: | -fvia-c -O generates mal-typed C code (casts double via unsigned int), Duncan Coutts |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |