1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module HUnit.Functor where
5 import Data.Proxy (Proxy(..))
7 import Language.Symantic ()
8 import Language.Symantic.Lib
9 import Testing.Compiling
18 (==>) = readTe @() @SS
21 hunits = testGroup "Functor"
22 [ "fmap not (Just True)" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
23 , "not `fmap` Just True" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
24 , "not <$> Just True" ==> Right (tyMaybe tyBool, Just False, "(\\x0 -> not x0) <$> Just True")
25 , "False <$ Just True" ==> Right (tyMaybe tyBool, Just False, "False <$ Just True")