1 {-# LANGUAGE DataKinds #-}
2 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
3 module Compiling.Functor.Test where
7 import Data.Proxy (Proxy(..))
8 import Prelude hiding ((&&), not, (||))
10 import Language.Symantic.Typing
11 import Language.Symantic.Compiling
12 import Compiling.Term.Test
21 (==>) = test_term_from (Proxy::Proxy Ifaces)
24 tests = testGroup "Functor"
26 [ syLam (Syntax "x" []) syBool
27 (Syntax "not" [Syntax "x" []])
29 ] ==> Right (tyMaybe :$ tyBool, Just False, "fmap (\\x0 -> (\\x1 -> not x1) x0) (Just True)")
33 ] ==> Right (tyMaybe :$ tyBool, Just False, "False <$ Just True")