Closed NCrashed closed 8 years ago
Thanks, I will look at these.
Is the type signature an acceptable workaround at the moment?
Yep
I think the issue is fixed, please check!
Got following when removed annotation from specColor
at first gist:
focus checkMetas: \a -> (\b:Type -> primFix a b) (\c:a (a := {d} -> {e} -> 'List (d, e) -> ('List d, 'List e)) -> typeAnn ({g} -> {h} -> 'List (g, h) -> ('List g, 'List h)) (\{j} (l : 'Unit->Type) (n : 'Unit->Type) (p : 'Unit->Type) (r : 'Unit->Type) (t : 'Unit->Type) (v : 'Unit->Type) (w : t TT ~ v TT) (x : r TT ~ t TT) -> \{y}-><<HERE>>))
\(a : V3 TT ~ 'List V0) (c : 'Unit->Type) (e : 'Unit->Type) (g : 'Unit->Type) (h : e TT ~ g TT) (i : c TT ~ e TT) (j : g TT ~ 'List V15) (k : 'List V16 ~ c TT) (l : 'List V8 ~ V13 TT) (m : V15 TT ~ ('List V18, 'List V9)) (n : V17 TT ~ V16 TT) (o : V19 TT ~ V18 TT) (p : ('List V21, 'List V12) ~ V20 TT) q:Type -> 'ListCase (\r:Type -> ('List V24, 'List V15)) (labend (Nil, Nil)) (\s:Type t:Type -> hlistConsCase V25 (Cons V16 Nil) V24 (\u:Type v:Type -> hlistConsCase V18 Nil V25 (\w:Type x:Type -> hlistNilCase V26 (labend (Cons u as, Cons w bs)) x) v) s) q
P.S. Also the same failure with annotation
I can't reproduce the last error, works for me.
Maybe you have to copy the following modules to the install directory: Internals.lc, Builtins.lc, Prelude.lc
This is done automatically by cabal install
BTW.
Sorry, my fault to forget to copy the files. I need to copy them manually as I use the package as dependency via stack:
packages:
- '.'
- location:
git: git@github.com:lambdacube3d/lambdacube-gl.git
commit: 33e873f2b5d6b9c6b31b8679df1625eb88f8a39d
- location:
git: git@github.com:lambdacube3d/lambdacube-ir.git
commit: 54cc12e4d6f10bc33811713286a1931bf96f64f3
subdirs:
- lambdacube-ir.haskell
- location:
git: git@github.com:lambdacube3d/lambdacube-compiler.git
commit: 596ce93cd64d80e13649d179720365b8571235db
Thanks, it works now!
After #4 there is some type inference regressions:
Source:
The problem is
specColor = V3 1 1 1
, without:: Vec 3 Float
there is following runtime errror:Another example:
The problem are uniforms in
where
at the end, without explicit type annotations I got:And others (after adding annotation for previous):