summaryrefslogtreecommitdiff
path: root/testsuite/tests/partial-sigs/should_compile/AddAndOr5.hs
blob: 5de904adf8e5936d413c9a307ba325a3b77f09a0 (plain)
1
2
3
4
5
6
7
{-# LANGUAGE PartialTypeSignatures #-}
module AddAndOr5 where

addAndOr5 :: (_, _) -> (_, _) -> (_, _)
addAndOr5 (a, b) (c, d) = (a `plus` d, b || c)
  where plus :: Int -> Int -> Int
        x `plus` y = x + y