sbv-14.0: SBVTestSuite/TestSuite/CompileTests/SCase/SCase47.hs
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}
module T where
import Expr
import Data.SBV
-- Negative: Num 1 without a fallback for the Num constructor
t :: SExpr -> SInteger
t e = [sCase| e of
Zero -> 0
Num 1 -> 100
Var _ -> -1
Add a b -> t a + t b
Let _ _ b -> t b
|]