Paul Chiusano
750d43ccdf
improved error message for case blah <unindent> of
2019-02-12 10:54:18 -05:00
Paul Chiusano
1e6fe070de
Merge pull request #276 from unisonweb/topic/codebase-editor
...
Topic/codebase editor is now master
2018-12-17 09:37:49 -05:00
Noah Haasis
8be494ef06
Remove example which know has a good error message
2018-12-17 05:49:35 +01:00
Runar Bjarnason
42bd109cf5
TDNR substituting blanks correctly
2018-10-15 16:10:55 -04:00
Runar Bjarnason
cff1b8857b
There's a bug somewhere.
2018-10-12 10:15:42 -04:00
Runar Bjarnason
f0746a142e
Now makes suggestions if the name matched but the type was different.
2018-10-11 21:49:01 -04:00
Arya Irani
dc793244b1
separate the root and leaf mismatched types for a function application error message
2018-09-25 10:21:31 -04:00
Paul Chiusano
f09da9d84d
rename Int64 to just Int
2018-09-24 13:36:13 -04:00
Paul Chiusano
66962863b5
rename UInt64 to Nat
2018-09-24 13:15:40 -04:00
Arya Irani
90c4fd7d67
fix off-by-two error in dataConstructorish
2018-09-04 14:27:59 -04:00
Paul Chiusano
5457fc8967
un-pending a test, rename a couple pending tests for clarity
2018-09-01 11:02:32 -04:00
Paul Chiusano
3b369ec295
Merge remote-tracking branch 'origin/master' into fix/effect-instantiation2
2018-09-01 10:54:25 -04:00
Paul Chiusano
0d5727a641
fix test that was causing <<loop>> due to circular annotation definition in the typechecker
2018-08-31 18:51:05 -04:00
Arya Irani
19ecc260f3
add two poor error messages that involve tdnr
2018-08-31 13:46:30 -04:00
Paul Chiusano
53d735d84a
fix to instantiateL/R which was completely forgetting to instantiate effects
...
This appears to have been masking another error with effect inference in map-reduce.u, which is now failing with an ability check again
2018-08-31 13:36:48 -04:00
Arya Irani
a48fa3bd82
add two pending tests
...
unison-src/test1.u became a-tale-of-two-optionals.uu
2018-08-31 12:16:38 -04:00
Arya Irani
3935b36638
add two pending tests, one poor error message, un-pend a test, and add description to a pending test
...
also watch *.uu files from ./scripts/watchany.sh
2018-08-31 11:37:29 -04:00
Arya Irani
994ff0249f
Merge remote-tracking branch 'origin/master' into wip/pretty-errors
2018-08-30 13:55:32 -04:00
Arya Irani
d327b5a53c
add test errors/map-traverse3.u
2018-08-30 13:30:49 -04:00
Arya Irani
48f61bc76c
wired up "wrong argument type" error; polymorphicTypeInfo bit still needs debugging
2018-08-29 18:52:38 -04:00
Arya Irani
1858b5161f
wired up case guard message
2018-08-29 12:32:40 -04:00
Arya Irani
69ac1fa0da
add match guard, match body errors
...
bugfixes:
- fix SubseqExtractor >>=
- more robust extractor pattern for boolean / existential mismatches
2018-08-29 12:16:15 -04:00
Arya Irani
d42b955b5b
flesh out some stuff for ExistentialMismatch errors
2018-08-29 09:33:15 -04:00
Arya Irani
2dc77ba2f1
Merge branch 'master' into wip/pretty-errors
2018-08-29 07:47:12 -04:00
Arya Irani
b97bc7349b
error extractor for overapplied function
2018-08-28 22:24:05 -04:00
Chris Gibbs
eac377537a
A few failing typechecker tests
...
- tests/delay_parse.uu - () -> {T} '() does not parse - interaction between the ' and the {T}
- tests/match_unit.uu - can't match on () in a pattern
- tests/hole.u - holes don't seem to be supported yet
- errors/effect_unknown_type.uu - no error when using an unknown type in an effect declaration
These are the things I found while getting the following to compile, which it now does! :-) It's a sketch of how the Remote API might break down in to constituent effects.
https://gist.github.com/atacratic/99fb707a7cb96bcd714cc1c024a7e08e
2018-08-26 21:14:32 +01:00
Rúnar Óli Bjarnason
16ca2932d0
Fixed console.uu
2018-08-23 14:56:50 -04:00
Rúnar
4acf38abfc
Merge pull request #235 from unisonweb/topic/patterntypes
...
More robust implementation of pattern typechecking
2018-08-23 10:02:34 -04:00
Paul Chiusano
7d1a46eefe
test now passing
2018-08-22 21:08:53 -04:00
Paul Chiusano
bbfff95c17
fix issue in case checking where scrutineeType and outputType weren't being refined after each branch
2018-08-22 20:58:49 -04:00
Paul Chiusano
06a53f232a
added some pending tests
2018-08-22 10:57:18 -04:00
Paul Chiusano
95214e66f1
simpler console.uu example
2018-08-21 14:16:35 -04:00
Arya Irani
73d7164278
add InSynthesizeApps
2018-08-20 16:36:53 -04:00
Arya Irani
41e82b9747
Merge remote-tracking branch 'origin/master' into wip/pretty-errors
2018-08-20 13:21:43 -04:00
Paul Chiusano
bc507a748e
fix issue where continuation in handler was not being appropriately constrained
2018-08-20 12:21:33 -04:00
Arya Irani
45acb0fbc6
wip - pretty errors for ill-typed function applications
2018-08-19 22:52:44 -04:00
Arya Irani
5a21c76ad7
pretty error for when applying args to something that isn't a function
2018-08-18 19:42:02 -04:00
Paul Chiusano
c00f4e51e5
Merge pull request #233 from unisonweb/topic/pretty-errors
...
one round of errors improvement
2018-08-18 08:07:44 -04:00
Paul Chiusano
f78bc60ca0
Merge pull request #232 from unisonweb/topic/tdnr
...
Fix bug in TDNR
2018-08-18 08:05:01 -04:00
Runar Bjarnason
b23f166769
Actually fail when TDNR has suggestions.
2018-08-17 22:21:51 -04:00
Arya Irani
d85de446b6
improved error for mismatched case body types
2018-08-17 18:54:28 -04:00
Arya Irani
1c682f55b5
sketched out cases for ExistentialMismatch (if/vector/case)*
...
* the checks yield false positives, see https://app.asana.com/0/781300632285932/783413200023835/f
- factored out "fromOverHere" to do a right thing for 0, 1, 2 other locations
- still haven't found a great model for extractors, but fixing the above bug may lead to something.
2018-08-17 14:32:58 -04:00
Paul Chiusano
9e24f8b946
unsoundness isolated pending test
2018-08-17 12:42:03 -04:00
Arya Irani
5ee2ab20a9
Merge branch 'master' into topic/pretty-errors
...
# Conflicts:
# parser-typechecker/src/Unison/PrintError.hs
2018-08-16 19:00:53 -04:00
Arya Irani
bfffd2f52d
add ex1.u discussion of recursive/interactive type errors
...
also remove columns and "colored"
2018-08-16 17:45:50 -04:00
Runar Bjarnason
28ec096a4e
Kill the computer
2018-08-16 12:42:38 -04:00
Arya Irani
184065d87b
add some pattern matching tests
2018-08-16 11:34:37 -04:00
Paul Chiusano
5af38fb39b
Merge branch 'master' into wip/effects
...
# Conflicts:
# parser-typechecker/src/Unison/PrintError.hs
# parser-typechecker/src/Unison/Typechecker/Context.hs
# parser-typechecker/tests/Unison/Test/Typechecker.hs
2018-08-14 16:13:50 -04:00
Paul Chiusano
713fbe8396
Merge remote-tracking branch 'origin/topic/pretty-errors' into wip/effects
2018-08-10 11:25:29 -04:00
Arya Irani
3b5217674f
unison-src/errors/state3.uu currently typechecks, even though it uses but doesn't handle the effect-pure case
2018-08-09 16:19:01 -04:00