1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.MonoFunctor.Test where
6 import Data.Proxy (Proxy(..))
7 import Prelude hiding (zipWith)
8 import qualified Data.MonoTraversable as MT
10 import Language.Symantic.Lib
19 , Proxy MT.MonoFunctor
22 (==>) = test_readTerm @() @SS
25 tests = testGroup "MonoFunctor"
26 [ "omap not (Just True)" ==> Right (tyMaybe tyBool, Just False, "omap (\\x0 -> not x0) (Just True)")
27 , "omap Char.toUpper ['a', 'b', 'c']" ==> Right (tyList tyChar, "ABC", "omap (\\x0 -> Char.toUpper x0) ('a' : 'b' : 'c' : [])" )