X-Git-Url: http://git.megacz.com/?p=coq-hetmet.git;a=blobdiff_plain;f=examples%2FDemo.hs;h=f5069fab2b6648522c485de6255842759629f0c5;hp=fea2dc7d960af4181932dee030d6a5583f12ed21;hb=bb5ad91dc2d9cf1e35895e293b4e3e1478b4af00;hpb=14afe39e905be69eabd8944b97bb2b731bf44939 diff --git a/examples/Demo.hs b/examples/Demo.hs index fea2dc7..f5069fa 100644 --- a/examples/Demo.hs +++ b/examples/Demo.hs @@ -4,6 +4,14 @@ import GHC.HetMet.CodeTypes import GHC.HetMet.Private import GArrowTikZ -foo x = <[ ~~x ]> +{- +foo :: (forall g a . <[ () -> a + PGArrow g (GArrowUnit g) a -> + (forall b . PGArrow g (GArrowTensor g b b) b) -> +-} +--foo con mer = <[ ~~mer ~~con ~~con ]> +foo f = <[ ~~f ]> -main = tikz' $ pga_flatten . foo . pga_unflatten +--tester2 f = <[ \x -> ~~f x x ]> + +main = tikz' $ \a b -> pga_flatten (foo (pga_unflatten a))