typecheck-plugin-nat-simple-0.1.0.0: sample/plus1minus1.hs
{-# LANGUAGE DataKinds, TypeOperators #-}
{-# OPTIONS_GHC -Wall -fno-warn-tabs -fplugin=Plugin.TypeCheck.Nat.Simple #-}
-- {-# OPTIONS_GHC -Wall -fno-warn-tabs #-}
import GHC.TypeNats
import Data.Proxy
main :: IO ()
main = print $ foo Proxy
foo :: Proxy (n + 1 - 1) -> Proxy n
foo = id