sbv-14.0: SBVTestSuite/TestSuite/CompileTests/PCase/PCase33.hs
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}
module T where
import Expr
import Data.SBV
import Data.SBV.TP
-- Negative in pCase: wildcard mid-list (after two constructors, before more)
-- Wildcard makes the remaining matches redundant
t :: SExpr -> Proof SBool
t e = [pCase| e of
Zero -> undefined
Num _ -> undefined
_ -> undefined
Var _ -> undefined
Add _ _ -> undefined
Let _ _ _ -> undefined
|]