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

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