summaryrefslogtreecommitdiff
path: root/testsuite/tests/indexed-types/should_compile/Simple23.hs
blob: b7d5ee4ccb971e37b0bc3e3fdd6b9f284c978579 (plain)
1
2
3
4
5
6
{-# LANGUAGE TypeFamilies #-}

module ShouldCompile where

plus :: (a ~ (Int -> Int)) => Int -> a
plus x y = x + y