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

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