blob: c7f43e77982440833863ec5f47ebce37c90ca553 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
{-# LANGUAGE EmptyCase, TemplateHaskell, LambdaCase #-}
module T7681 where
data Void
foo :: Void -> a
foo x = $( [| case x of {} |] )
bar :: Void -> a
bar = $( [| \case {} |] )
|