summaryrefslogtreecommitdiff
path: root/testsuite/tests/rep-poly/LevPolyLet.hs
blob: fc8db1657b3551b5f5d62bf3f34ec9bef56875d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{-# language DataKinds #-}
{-# language KindSignatures #-}
{-# language PolyKinds #-}
{-# language RankNTypes #-}

module LevPolyLet
  ( example
  ) where

import GHC.Exts

-- This should be rejected because of the let binding.
example :: forall (v :: Levity) (a :: TYPE ('BoxedRep v)).
     (Int -> a)
  -> Bool
example f =
  let x = f 42
   in undefined