1 {-# LANGUAGE DataKinds #-}
2 {-# OPTIONS_GHC -fno-warn-missing-signatures #-}
3 {-# OPTIONS_GHC -O0 #-} -- speedup compile-time…
4 module Compiling.Foldable.Test where
8 import Data.Proxy (Proxy(..))
10 import Language.Symantic.Typing
11 import Language.Symantic.Compiling
12 import Compiling.Term.Test
21 (==>) = test_term_from (Proxy::Proxy Ifaces)
24 tests = testGroup "Foldable"
26 [ syLam (Syntax "x" []) syInt $
34 , Syntax "int" [Syntax "1" []]
35 , Syntax "int" [Syntax "2" []]
36 , Syntax "int" [Syntax "3" []]
41 , "foldMap (\\x0 -> [x0, x0]) [1, 2, 3]" )