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

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