1 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
2 module Lib.Foldable.Test where
6 import Data.Proxy (Proxy(..))
8 import Language.Symantic.Lib
20 (==>) = readTe @() @SS
23 tests = testGroup "Foldable"
24 [ {-"[]" ==> Right (tyList (tyVar "a" varZ), [], "[]")
25 ,-} "[1, 2, 3]" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
26 , "1 : 2 : 3 : []" ==> Right (tyList tyInteger, [1, 2, 3], "1 : 2 : 3 : []")
27 , "foldMap (\\(x0:Integer) -> [x0, x0]) [1, 2, 3]" ==> Right
30 , "foldMap (\\x0 -> x0 : x0 : []) (1 : 2 : 3 : [])" )