sbv-14.0: SBVTestSuite/TestSuite/CompileTests/SCase/SCase59.hs
{-# LANGUAGE QuasiQuotes #-}
{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}
-- Test: sCase with Maybe, nested Either pattern
module T where
import Data.SBV
t :: SMaybe (Either Integer Bool) -> SInteger
t m = [sCase| m of
Nothing -> 0
Just (Left x) -> x
Just (Right _) -> 1
|]