Closed GoogleCodeExporter closed 9 years ago
Omega Interpreter: version 1.4.2
Build Date: Thu Nov 8 15:51:28 Pacific Standard Time 2007
has a different behaviour:
**** Near line: 97 column: 1
Different types
c ~> c ~> *0 != *1
(dfu ~> dfu ~> *0,*1)
Need to investigate :-)
Original comment by ggr...@gmail.com
on 13 Nov 2007 at 12:56
this (i.e. comment 1) turned out to be a bug in flattenThrist.
http://svn.berlios.de/svnroot/repos/al4nin/trunk/found-bugs/issue23-MonadPrime.o
mg
at revision 519 contains the corrected code.
Original comment by ggr...@gmail.com
on 13 Nov 2007 at 12:53
Here is a new example:
############################
data Pat :: *2 where
Y :: Pat
Q :: Pat ~> Pat
deriving Nat(p)
data Pat' :: Pat ~> *1 where
Y' :: Pat' Y
Q' :: Pat' n ~> Pat' (Q n)
deriving Nat(q)
data Pat'' :: Pat' p ~> *0 where
Y :: Pat'' Y'
Q :: Pat'' n -> Pat'' (Q' n)
deriving Nat(r)
plus :: Pat ~> Pat ~> Pat
{plus Y n} = n
{plus (Q m) n} = Q {plus m n}
plus' :: Pat' m ~> Pat' n ~> Pat' {plus m n}
{plus' Y' n} = n -- BUG! Occurs check
{plus' (Q' m) n} = Q' {plus' m n}
############################
I get:
(Pat Y Q) (Pat' Y' Q') (Pat'' Y Q) (plus ::plus) (plus' ::plus') Occurs check
a != {plus 0p a}
(qcb,{plus 0p qcb})
File AutoLevelled.omg loaded.
A one-step unfolding of the plus function would restore the equality :-(
Original comment by ggr...@gmail.com
on 24 Feb 2010 at 4:01
Another idea: only normalize when we have an occur. if there are any tyfun
calls inside that can be reduced and the result passes the occur check, we can
substitute the result for the original.
Original comment by ggr...@gmail.com
on 31 Dec 2010 at 12:01
[deleted comment]
issue 51 possibly related
Original comment by ggr...@gmail.com
on 31 Dec 2010 at 12:22
r495. See also issue 47 and issue 51.
Original comment by ggr...@gmail.com
on 3 Jan 2011 at 4:12
r502 should fix the ":try f a" problem from comment 2.
I think there are no more residual problems in this issue.
Original comment by ggr...@gmail.com
on 4 Jan 2011 at 2:45
Original issue reported on code.google.com by
ggr...@gmail.com
on 25 Jul 2007 at 1:49