X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=examples%2FDemo.hs;h=849693f5b338f877afdacfe0aca5159ba65db277;hp=f5069fab2b6648522c485de6255842759629f0c5;hb=6ae1b9b08da7c1d1f0de42afa1ccbf42acda3e62;hpb=4f4443fab27bf4724b7a1b5a92a48d5a58c440d7 diff --git a/examples/Demo.hs b/examples/Demo.hs index f5069fa..849693f 100644 --- a/examples/Demo.hs +++ b/examples/Demo.hs @@ -1,8 +1,9 @@ {-# OPTIONS_GHC -XRankNTypes -XScopedTypeVariables -XFlexibleContexts -XModalTypes -XKindSignatures -fcoqpass -XMultiParamTypeClasses -dcore-lint #-} +module Demo (foo) where import GHC.HetMet.GArrow import GHC.HetMet.CodeTypes import GHC.HetMet.Private -import GArrowTikZ +--import GArrowTikZ {- foo :: (forall g a . <[ () -> a @@ -10,8 +11,8 @@ foo :: (forall g a . <[ () -> a (forall b . PGArrow g (GArrowTensor g b b) b) -> -} --foo con mer = <[ ~~mer ~~con ~~con ]> -foo f = <[ ~~f ]> +foo const merge = <[ ~~merge ~~const (~~merge ~~const ~~const) ]> --tester2 f = <[ \x -> ~~f x x ]> -main = tikz' $ \a b -> pga_flatten (foo (pga_unflatten a)) +--main = tikz' $ \a b -> pga_flatten (foo (pga_unflatten a))