projects
/
coq-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
update examples
[coq-hetmet.git]
/
examples
/
Demo.hs
diff --git
a/examples/Demo.hs
b/examples/Demo.hs
index
fea2dc7
..
f5069fa
100644
(file)
--- a/
examples/Demo.hs
+++ b/
examples/Demo.hs
@@
-4,6
+4,14
@@
import GHC.HetMet.CodeTypes
import GHC.HetMet.Private
import GArrowTikZ
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))