{-# LANGUAGE NoMonomorphismRestriction #-} {-# LANGUAGE FlexibleContexts #-} {-# OPTIONS_GHC -fno-warn-missing-signatures #-} module Expr.Lambda.Test where import Test.Tasty import Prelude hiding ((&&), not, (||), (==)) import Language.Symantic.Expr.Lambda import Language.Symantic.Expr.Bool -- * Expressions e1 = val $ \x -> val $ \y -> (x || y) && not (x && y) e2 = val $ \x -> val $ \y -> (x && not y) || (not x && y) e3 = let_val (bool True) $ \x -> x && x e4 = let_val (val $ \x -> x && x) $ \f -> f `app` bool True e5 = val $ \x0 -> val $ \x1 -> x0 && x1 e6 = let_val (bool True) id && bool False e7 = val $ \f -> (f `app` bool True) && bool True e8 = val $ \f -> f `app` (bool True && bool True) tests :: TestTree tests = testGroup "Lambda" [ ]