diff options
Diffstat (limited to 'testsuite/tests/th/TH_emptycase.hs')
-rw-r--r-- | testsuite/tests/th/TH_emptycase.hs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testsuite/tests/th/TH_emptycase.hs b/testsuite/tests/th/TH_emptycase.hs new file mode 100644 index 0000000000..d68ca9a8ee --- /dev/null +++ b/testsuite/tests/th/TH_emptycase.hs @@ -0,0 +1,12 @@ +{-# LANGUAGE TemplateHaskell #-} +-- Trac #2431: empty case expression +-- currently rejected + +module Main where + +import Language.Haskell.TH + +f :: Int +f = $(caseE (litE $ CharL 'a') []) + +main = print f |