1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.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 Compiling.Term.Test
19 , Proxy MT.MonoFunctor
22 (==>) = test_compile (Proxy::Proxy Ifaces)
25 tests = testGroup "MonoFunctor"
26 [ "omap not (Just True)" ==> Right
27 ( ty @Maybe :$ ty @Bool
29 , "omap (\\x0 -> not x0) (Just True)" )
30 , "omap Char.toUpper ['a', 'b', 'c']" ==> Right
33 , "omap (\\x0 -> Char.toUpper x0) ('a' : 'b' : 'c' : [])" )