projects
/
coq-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GArrowPortShape: add detectShape
[coq-hetmet.git]
/
examples
/
Demo.hs
diff --git
a/examples/Demo.hs
b/examples/Demo.hs
index
f5069fa
..
ff4468c
100644
(file)
--- a/
examples/Demo.hs
+++ b/
examples/Demo.hs
@@
-1,8
+1,9
@@
{-# OPTIONS_GHC -XRankNTypes -XScopedTypeVariables -XFlexibleContexts -XModalTypes -XKindSignatures -fcoqpass -XMultiParamTypeClasses -dcore-lint #-}
{-# 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 GHC.HetMet.GArrow
import GHC.HetMet.CodeTypes
import GHC.HetMet.Private
-import GArrowTikZ
+--import GArrowTikZ
{-
foo :: (forall g a . <[ () -> a
{-
foo :: (forall g a . <[ () -> a
@@
-10,8
+11,9
@@
foo :: (forall g a . <[ () -> a
(forall b . PGArrow g (GArrowTensor g b b) b) ->
-}
--foo con mer = <[ ~~mer ~~con ~~con ]>
(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) ]>
+foo const merge = <[ ~~merge ~~const ~~const ]>
--tester2 f = <[ \x -> ~~f x x ]>
--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))