You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following results in an error when elaborating projection functions:
corecord BisimStream' : Stream' a -> Stream' a -> Type where
phd : BisimStream' s s' -> (hd s) = (hd s')
ptl : BisimStream' s s' -> BisimStream' (tl s) (tl s')
Explicitly adding the type to the type constructor solves this:
corecord BisimStream' : (a : Type) -> Stream' a -> Stream' a -> Type where
phd : BisimStream' a s s' -> (hd s) = (hd s')
ptl : BisimStream' a s s' -> BisimStream' a (tl s) (tl s')
This problem also exists for records and is as such not a problem with our implementation.
Branch: Corecords
The text was updated successfully, but these errors were encountered:
This fails on the master branch (read: without our changes):
record Foo : Stream a -> Stream a -> Type where
MkFoo : Foo s s'
When elaborating left hand side of NoCo.Foo.implicit_a:
Can't unify
(s' : Stream a) -> Foo a s s'
with
Foo p_implicit_a (_p_implicit_s) (_p_s')
Specifically:
Can't unify
(s' : Stream a) -> Foo a s s'
with
Foo p_implicit_a (_p_implicit_s) (_p_s')
The following results in an error when elaborating projection functions:
Explicitly adding the type to the type constructor solves this:
This problem also exists for records and is as such not a problem with our implementation.
Branch: Corecords
The text was updated successfully, but these errors were encountered: