|
ambiguity problem: msg#00057lang.haskell.glasgow.bugs
Hi, I'm using ghci --version The Glorious Glasgow Haskell Compilation System, version 5.04.2 ghci -fglasgow-exts doesn't seem to report ambiguity of type schemes. Take a look at the following program. class Bar a b | a -> b where bar :: a -> b class Foo a b where foo :: Bar b c => a -> c -- ambiguous -- should be foo :: foo :: Bar b c => a -> b g :: Foo a b => a g = undefined -- ambiguous No ambiguity error is reported. This seems like a bug. Martin
|
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: loading package util on Linux, Simon Marlow |
|---|---|
| Next by Date: | RE: Evil Mangler hanging while building 5.04.3-1 on RedHat 8.0, 9.0?, Simon Marlow |
| Previous by Thread: | Evil Mangler hanging while building 5.04.3-1 on RedHat 8.0, 9.0?, Andy Moran |
| Next by Thread: | [ ghc-Bugs-699225 ] GHCi segfaults on expression evaluation, SourceForge.net |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |