2020-06-01 16:26:37 +03:00
|
|
|
1/1: Building refprims (refprims.idr)
|
2020-07-12 17:54:10 +03:00
|
|
|
LOG 0: Name: Prelude.Types.List.++
|
2021-05-11 10:26:00 +03:00
|
|
|
LOG 0: Type: (%pi Rig0 Implicit (Just a) %type (%pi RigW Explicit (Just xs) (Prelude.Basics.List a) (%pi RigW Explicit (Just ys) (Prelude.Basics.List a) (Prelude.Basics.List a))))
|
2021-10-14 14:35:32 +03:00
|
|
|
LOG 0: Pretty Type: (xs : List a) -> (ys : List a) -> List a
|
2021-01-27 22:18:34 +03:00
|
|
|
LOG 0: Name: Prelude.Types.String.++
|
Remove linearity subtyping
It's disappointing to have to do this, but I think necessary because
various issue reports have shown it to be unsound (at least as far as
inference goes) and, at the very least, confusing. This patch brings us
back to the basic rules of QTT.
On the one hand, this makes the 1 multiplicity less useful, because it
means we can't flag arguments as being used exactly once which would be
useful for optimisation purposes as well as precision in the type. On
the other hand, it removes some complexity (and a hack) from
unification, and has the advantage of being correct! Also, I still
consider the 1 multiplicity an experiment.
We can still do interesting things like protocol state tracking, which
is my primary motivation at least.
Ideally, if the 1 multiplicity is going to be more generall useful,
we'll need some kind of way of doing multiplicity polymorphism in the
future. I don't think subtyping is the way (I've pretty much always come
to regret adding some form of subtyping).
Fixes #73 (and maybe some others).
2020-12-27 22:58:35 +03:00
|
|
|
LOG 0: Type: (%pi RigW Explicit (Just x) String (%pi RigW Explicit (Just y) String String))
|
2021-10-14 14:35:32 +03:00
|
|
|
LOG 0: Pretty Type: (x : String) -> (y : String) -> String
|
2020-07-12 17:54:10 +03:00
|
|
|
LOG 0: Resolved name: Prelude.Types.Nat
|
|
|
|
LOG 0: Constructors: [Prelude.Types.Z, Prelude.Types.S]
|
2020-07-28 15:11:42 +03:00
|
|
|
Error: While processing right hand side of dummy1. Error during reflection: Not really trying
|
|
|
|
|
2021-10-14 14:35:32 +03:00
|
|
|
refprims:45:10--45:27
|
|
|
|
41 | ns <- inCurrentNS n
|
|
|
|
42 | fail $ "failed after generating " ++ censorDigits (show ns)
|
|
|
|
43 |
|
|
|
|
44 | dummy1 : a
|
|
|
|
45 | dummy1 = %runElab logPrims
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
|
|
|
Error: While processing right hand side of dummy2. Error during reflection: Still not trying
|
|
|
|
|
2021-10-14 14:35:32 +03:00
|
|
|
refprims:48:10--48:30
|
|
|
|
44 | dummy1 : a
|
|
|
|
45 | dummy1 = %runElab logPrims
|
|
|
|
46 |
|
|
|
|
47 | dummy2 : a
|
|
|
|
48 | dummy2 = %runElab logDataCons
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
|
|
|
Error: While processing right hand side of dummy3. Error during reflection: Undefined name
|
|
|
|
|
2021-10-14 14:35:32 +03:00
|
|
|
refprims:51:10--51:25
|
|
|
|
47 | dummy2 : a
|
|
|
|
48 | dummy2 = %runElab logDataCons
|
|
|
|
49 |
|
|
|
|
50 | dummy3 : a
|
|
|
|
51 | dummy3 = %runElab logBad
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-06-29 10:37:02 +03:00
|
|
|
Error: While processing right hand side of dummy4. Error during reflection: failed after generating Main.{plus:XXXX}
|
2020-07-28 15:11:42 +03:00
|
|
|
|
2021-10-14 14:35:32 +03:00
|
|
|
refprims:54:10--54:28
|
|
|
|
50 | dummy3 : a
|
|
|
|
51 | dummy3 = %runElab logBad
|
|
|
|
52 |
|
|
|
|
53 | dummy4 : a
|
|
|
|
54 | dummy4 = %runElab tryGenSym
|
2021-02-11 20:24:26 +03:00
|
|
|
^^^^^^^^^^^^^^^^^^
|
2020-07-28 15:11:42 +03:00
|
|
|
|