1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Compiling.MonoFunctor.Test where
6 import qualified Data.MonoTraversable as MT
7 import Data.Proxy (Proxy(..))
8 import Prelude hiding (zipWith)
10 import Language.Symantic.Typing
11 import Language.Symantic.Compiling ()
12 import Compiling.Term.Test
13 import Compiling.Bool.Test ()
21 , Proxy MT.MonoFunctor
24 (==>) = test_compile (Proxy::Proxy Ifaces)
27 tests = testGroup "MonoFunctor"
28 [ "omap not (Just True)" ==> Right
29 ( ty @Maybe :$ ty @Bool
31 , "omap (\\x0 -> not x0) (Just True)" )
32 , "omap Char.toUpper ['a', 'b', 'c']" ==> Right
35 , "omap (\\x0 -> Char.toUpper x0) ('a' : 'b' : 'c' : [])" )