packages feed

sbv-14.0: SBVTestSuite/TestSuite/CompileTests/SCase/SCase65.hs

{-# LANGUAGE QuasiQuotes #-}

{-# OPTIONS_GHC -Wall -Werror -ddump-splices #-}

-- Test: sCase with nested tuple inside Maybe
module T where

import Data.SBV

t :: SMaybe (Integer, Bool) -> SInteger
t m = [sCase| m of
               Nothing     -> 0
               Just (a, _) -> a
      |]