X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds023.hs;fp=ghc%2Fcompiler%2Ftests%2FdeSugar%2Fds023.hs;h=ecd6e137bfe1eefb65b65ecd8091320d0c728386;hb=e7d21ee4f8ac907665a7e170c71d59e13a01da09;hp=0000000000000000000000000000000000000000;hpb=e48474bff05e6cfb506660420f025f694c870d38;p=ghc-hetmet.git diff --git a/ghc/compiler/tests/deSugar/ds023.hs b/ghc/compiler/tests/deSugar/ds023.hs new file mode 100644 index 0000000..ecd6e13 --- /dev/null +++ b/ghc/compiler/tests/deSugar/ds023.hs @@ -0,0 +1,7 @@ +--!!! ds023 -- overloading eg from section 9.2 +-- +module Tests where + +f x = g (x == x) x +g b x = abs (f x) +--g b x = (f x) + (f x)