|
RE: n + k patterns: msg#00068lang.haskell.glasgow.bugs
Good point. Fixed in the head, but not in 6.0 Thanks Simon | -----Original Message----- | From: glasgow-haskell-bugs-admin@xxxxxxxxxxx [mailto:glasgow-haskell-bugs-admin@xxxxxxxxxxx] On | Behalf Of Ralf Hinze | Sent: 28 May 2003 20:40 | To: GHC bugs | Subject: n + k patterns | | GHCi infers for | | > fac 0 = 1 | > fac (n + 1) = (n + 1) * fac n | | the following type | | / _ \ /\ /\/ __(_) | / /_\// /_/ / / | | GHC Interactive, version 5.04.2, for Haskell 98. | / /_\\/ __ / /___| | http://www.haskell.org/ghc/ | \____/\/ /_/\____/|_| Type :? for help. | | Loading package base ... linking ... done. | Loading package haskell98 ... linking ... done. | Compiling Main ( Fac.lhs, interpreted ) | Ok, modules loaded: Main. | *Main> :t fac | forall a. (Num a, Ord a) => a -> a | | The Report, however, states that | | 3.17.2 Informal Semantics of Pattern Matching | <...> | An n+k pattern can only be matched against a value in the class Integral. | | Cheers, Ralf | | _______________________________________________ | 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: building ghc from source, Alastair Reid |
|---|---|
| Next by Date: | Re: GHC *is* resource hungry, Ralf Hinze |
| Previous by Thread: | n + k patterns, Ralf Hinze |
| Next by Thread: | GHC 6.1 TH panic!, Mike Thomas |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |