Hi there,
In ghc-3.02 the following program compiles fine.
> module Main( main ) where
> f :: String -> Int
> f "=<" = 0
> f "=" = 0
> g :: [Char] -> Int
> g ['=','<'] = 0
> g ['='] = 0
> main = return ()
However, for ``f'' the following is reported.
tmp.lhs:4:
Pattern match(es) are overlapped in the definition of function `f'
"=" = ...
There are no complaints for definition for ``g''.
Hope this helps,
Marc
- Re: ``bug report'' Marc van Dongen
- Re: ``bug report'' Sven Panne
