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