packages feed

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

{-# LANGUAGE QuasiQuotes #-}

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

-- Test: sCase Bool with wildcard catch-all
module T where

import Data.SBV

t :: SBool -> SInteger
t x = [sCase| x of
               True -> 1
               _    -> 0
      |]