diff options
Diffstat (limited to 'testsuite/tests/hiefile/should_compile/hie006.hs')
-rw-r--r-- | testsuite/tests/hiefile/should_compile/hie006.hs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testsuite/tests/hiefile/should_compile/hie006.hs b/testsuite/tests/hiefile/should_compile/hie006.hs new file mode 100644 index 0000000000..8e86ab0b71 --- /dev/null +++ b/testsuite/tests/hiefile/should_compile/hie006.hs @@ -0,0 +1,22 @@ +module Operators where + + +(+++) :: [a] -> [a] -> [a] +a +++ b = a ++ b ++ a + +($$$) :: [a] -> [a] -> [a] +a $$$ b = b +++ a + +(***) :: [a] -> [a] -> [a] +(***) a [] = a +(***) a (_:b) = a +++ (a *** b) + +(*/\*) :: [[a]] -> [a] -> [a] +a */\* b = concatMap (*** b) a + +(**/\**) :: [[a]] -> [[a]] -> [[a]] +a **/\** b = zipWith (*/\*) [a +++ b] (a $$$ b) + + +(#.#) :: a -> b -> (c -> (a, b)) +a #.# b = const $ (a, b) |