1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.Foldable.Test where
6 import Data.Proxy (Proxy(..))
7 import Prelude hiding ((&&), not, (||))
9 import Language.Symantic.Typing
10 import Compiling.Term.Test
21 (==>) = test_compile (Proxy::Proxy Ifaces)
24 tests = testGroup "Foldable"
25 [ "[] @Integer" ==> Right
26 ( ty @[] :$ ty @Integer
29 , "[1, 2, 3]" ==> Right
30 ( ty @[] :$ ty @Integer
33 , "foldMap (\\(x0:Integer) -> [x0, x0]) [1, 2, 3]" ==> Right
34 ( ty @[] :$ ty @Integer
36 , "foldMap (\\x0 -> x0 : x0 : []) (1 : 2 : 3 : [])" )