1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.Functor.Test where
6 import Data.Proxy (Proxy(..))
7 import Prelude hiding ((&&), not, (||))
9 import Language.Symantic ()
10 import Language.Symantic.Lib
20 (==>) = readTe @() @SS
23 tests = testGroup "Functor"
24 [ "fmap not (Just True)" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
25 , "not `fmap` Just True" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
26 , "not <$> Just True" ==> Right (tyMaybe tyBool, Just False, "(\\x0 -> not x0) <$> Just True")
27 , "False <$ Just True" ==> Right (tyMaybe tyBool, Just False, "False <$ Just True")