1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module HUnit.Functor where
6 import Data.Either (Either(..))
7 import Data.Functor (Functor)
8 import Data.Maybe (Maybe(..))
9 import Data.Proxy (Proxy(..))
10 import Prelude (Integer)
12 import Language.Symantic ()
13 import Language.Symantic.Lib
14 import Testing.Compiling
23 (==>) = readTe @() @SS
26 hunits = testGroup "Functor"
27 [ "fmap not (Just True)" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
28 , "not `fmap` Just True" ==> Right (tyMaybe tyBool, Just False, "fmap (\\x0 -> not x0) (Just True)")
29 , "not <$> Just True" ==> Right (tyMaybe tyBool, Just False, "(\\x0 -> not x0) <$> Just True")
30 , "False <$ Just True" ==> Right (tyMaybe tyBool, Just False, "False <$ Just True")