Chris Penner
19b8131777
Generalize to pretty text
2024-03-13 11:46:27 -07:00
Chris Penner
4d2cec6f4e
Better error messages for lexer errors
2024-03-13 10:24:23 -07:00
aryairani
f88d652383
[create-pull-request] automated change
2024-03-12 18:35:54 +00:00
Arya Irani
4a9707beca
Merge pull request #4768 from unisonweb/fix/4722
...
Push type checking through match statements
2024-03-09 11:31:44 -05:00
Arya Irani
27b29c1ee3
Merge pull request #4675 from unisonweb/topic/native-compiler
...
Rework racket based runtime/compilation
2024-03-08 17:18:19 -05:00
Dan Doel
e0b178b005
Push type checking through match statements
2024-03-08 15:18:35 -05:00
Arya Irani
d913a61f45
Merge pull request #4752 from unisonweb/runarorama/fixFieldNames
...
Fix field accessors not showing up in `view` in some cases
2024-03-08 10:09:09 -05:00
Dan Doel
51dbdb7746
Fix a variable capture issue during let floating
2024-03-06 15:29:51 -05:00
Arya Irani
a2b19adf51
Update parser-typechecker/src/Unison/Syntax/DeclPrinter.hs
2024-03-06 15:10:02 -05:00
Rúnar
88aa2dfced
Give fields more unique variable names
...
as they're not freshened properly
2024-03-05 14:19:20 -05:00
Dan Doel
3048be647e
Merge remote-tracking branch 'origin/trunk' into topic/native-compiler
2024-03-01 17:19:54 -05:00
Mitchell Rosen
a90c394000
⅄ trunk → 24-02-26-upgrade-tweak
2024-02-27 12:37:47 -05:00
Arya Irani
f66bf086b8
Merge remote-tracking branch 'origin/trunk' into topic/ed25519
...
# Conflicts:
# unison-src/transcripts-using-base/all-base-hashes.output.md
2024-02-26 20:18:46 -05:00
Arya Irani
0fdb7db2e7
Merge pull request #3525 from unisonweb/22-10-18-backticky-parser
...
Backticky symbol parsing
2024-02-26 17:29:43 -05:00
Mitchell Rosen
b7b2807647
refactor upgrade a bit to have more consistent variables names
2024-02-26 15:27:30 -05:00
Arya Irani
7397f039f0
remove Metadata.Type
2024-02-25 23:10:22 -05:00
Dan Doel
b3c4f9d87f
Implement ed25519 builtins for Haskell
2024-02-23 18:02:24 -05:00
Mitchell Rosen
d8a9f3ef11
⅄ trunk → 22-10-18-backticky-parser
2024-02-23 08:35:33 -05:00
Arya Irani
c5cdca14c7
update tests
2024-02-22 14:23:13 -05:00
Arya Irani
c073aea3f7
remove metadata types from the in-memory branches
2024-02-22 12:46:15 -05:00
Arya Irani
15e7db52cc
add export list to Unison.Codebase.Metadata
2024-02-22 11:51:37 -05:00
Mitchell Rosen
12a75f18b3
partially fix tab-completion
2024-02-22 10:55:13 -05:00
Mitchell Rosen
aa2107982f
⅄ trunk → 22-10-18-backticky-parser
2024-02-20 11:10:58 -05:00
Arya Irani
9042865af2
more debug info for calling raco
2024-02-16 19:13:31 -05:00
Arya Irani
ce6eed9374
some reference info
2024-02-16 18:45:01 -05:00
Arya Irani
2d0deab813
beef up the error messages around calling the native runtime
2024-02-16 18:43:30 -05:00
Arya Irani
b607e7acca
add ioexception message to ucr and raco failures.
2024-02-16 10:42:54 -05:00
Dan Doel
719933b5ca
Make --runtime-path expect full executable path
2024-02-15 18:28:52 -05:00
Dan Doel
038550ced3
Native runtime location argument, and an improved error msg
2024-02-09 16:52:59 -05:00
Dan Doel
6703193069
Rename ucr to unison-runtime
2024-02-08 11:49:10 -05:00
Dan Doel
5f946e202e
Merge remote-tracking branch 'origin/trunk' into topic/native-compiler
2024-02-07 16:43:47 -05:00
Dan Doel
a678f55e10
Actually make run.native use the standalone runner
...
All the infrastructure was there already, just needed to enable it.
This should break the jit tests in CI until we can get the runner
building as a prior step, and coordinate the location the native runtime
looks for the build files.
2024-02-07 16:10:33 -05:00
Dan Doel
788e082ac7
Add an improved error message for unison native runtime failure
2024-02-07 12:00:14 -05:00
Dan Doel
c3c62c4d45
Give a nicer looking error for ucr/raco problems
2024-02-06 16:28:24 -05:00
Chris Penner
4da9d12ef1
Fix span annotations on handle-with blocks
2024-02-05 10:45:03 -08:00
Dan Doel
f78c119fdc
Revise how native compilation works
...
There are, for the moment, multiple problems with producing executables.
One is that the API doesn't work when certain math libraries are
imported. The other is that the API doesn't work in a generated
executable.
So, I've turned the 'compile mode' of the standalone runtime program
just generate a module to be compiled. Then we can use an installed
`raco` to build that module into a standalone program. I don't think
there's any advantage currently to not using raco, since the best we can
do is write our own separate exe builder that still requires racket to
be installed.
In any case, the exe builder must apparently be a separate program so
that it doesn't need to import the offending math library.
2024-02-05 13:32:01 -05:00
Mitchell Rosen
34cc9c820a
fix "." parsing in term parser
2024-02-03 00:06:07 -05:00
Mitchell Rosen
609c47b0bf
bugfix: Path.toText rendered an empty path as ".", not ""
2024-02-02 11:55:35 -05:00
Mitchell Rosen
3f3860fba3
bugfix: term printer put too many use statements
2024-02-02 11:43:00 -05:00
Mitchell Rosen
cf15f30261
⅄ trunk → 22-10-18-backticky-parser
2024-02-02 10:00:38 -05:00
Arya Irani
cfb58a67ea
Merge pull request #2664 from setupminimal/explicit-parser-exports
...
Add Explicit Export Lists for Modules that involve Parsing
2024-02-01 18:18:53 -05:00
Arya Irani
544f2940e1
Merge remote-tracking branch 'origin/trunk' into setupminimal-explicit-parser-exports
...
# Conflicts:
# CONTRIBUTORS.markdown
# parser-typechecker/src/Unison/FileParser.hs
# parser-typechecker/src/Unison/Syntax/TermParser.hs
# parser-typechecker/src/Unison/Syntax/TypeParser.hs
# unison-syntax/src/Unison/Syntax/Parser.hs
2024-02-01 15:57:49 -05:00
Mitchell Rosen
96ca5c71ce
⅄ trunk → 22-10-18-backticky-parser
2024-02-01 13:54:11 -05:00
Mitchell Rosen
9799b4f479
fix and move Var.namespaced
2024-02-01 13:48:51 -05:00
Mitchell Rosen
3044255060
sytax work
2024-02-01 02:39:48 -05:00
Chris Penner
61a0542183
Default to single-quotes
2024-01-31 16:19:14 -08:00
Chris Penner
cb974e7ae1
Newlines within {{ }} for multi-line docs
2024-01-31 11:27:49 -08:00
Mitchell Rosen
07078e9989
UnsafeNameSegment -> NameSegment
2024-01-31 11:15:00 -05:00
Mitchell Rosen
7f93853228
add instance IsString NameSegment
2024-01-31 11:08:47 -05:00
Mitchell Rosen
acce2ea1df
⅄ trunk → 22-10-18-backticky-parser
2024-01-30 08:02:55 -05:00
Mitchell Rosen
186843b7c9
fix compiler errors in tests
2024-01-30 07:41:18 -05:00
dolio
d2bb44f6a6
Merge pull request #4642 from unisonweb/fix/local-defs
...
Local definition generalization and possible TDNR improvement
2024-01-29 14:13:42 -05:00
Dan Doel
f55501d9c7
Ormolu formatting
2024-01-29 13:48:03 -05:00
Dan Doel
2778dcce84
Be a bit more intelligent about retaining TDNR context
2024-01-29 13:19:55 -05:00
Rúnar
3b7e2586a2
Fix type rendering for existentials, other tweaks
2024-01-26 12:53:29 -05:00
Rúnar
16ac4071db
Merge branch 'trunk' of https://github.com/unisonweb/unison into runarorama/improve-tdnr-message
2024-01-25 21:56:09 -05:00
Rúnar
60a34e7bac
Fix up tests
2024-01-25 20:55:52 -05:00
Rúnar
13cc8cfcf4
Minor tweaks to output
2024-01-25 20:46:31 -05:00
Rúnar
408e9a703f
Fix up tests so they compile
2024-01-25 20:09:02 -05:00
Rúnar
270634b1e9
Remove extraneous space
2024-01-25 15:33:06 -05:00
Rúnar
b1db1d5084
Count segments as a proxy for relevance
...
instead of name length
2024-01-25 15:21:53 -05:00
Rúnar
1415688b57
Remove current path argument
2024-01-25 15:19:10 -05:00
Rúnar
980a21ad19
Update parser-typechecker/src/Unison/PrintError.hs
...
Co-authored-by: Arya Irani <538571+aryairani@users.noreply.github.com>
2024-01-25 14:59:27 -05:00
Rúnar
9728e44dc2
Update parser-typechecker/src/Unison/PrintError.hs
...
Co-authored-by: Chris Penner <christopher.penner@gmail.com>
2024-01-25 14:57:43 -05:00
Chris Penner
e8b8fedbce
Formatter rewrite
2024-01-25 10:23:46 -08:00
Dan Doel
1810f4f83b
Improve some TDNR and local type generalization behavior
2024-01-25 10:34:44 -05:00
Rúnar
1d7468e12a
Sort by name length as a proxy for relevance
2024-01-25 10:03:35 -05:00
Rúnar
38888c3ec0
Merge branch 'trunk' of https://github.com/unisonweb/unison into runarorama/improve-tdnr-message
2024-01-25 09:44:20 -05:00
Rúnar
aa9925450c
Make errors nicer when TDNR fails
2024-01-25 09:43:51 -05:00
Chris Penner
4ac9cd42b0
Fix bad annotations on trailing constructor args
2024-01-24 19:12:16 -08:00
Chris Penner
467ff20643
Cleanup
2024-01-24 14:33:00 -08:00
Chris Penner
a97da0377f
Update transcripts
2024-01-24 14:18:06 -08:00
Chris Penner
d6a2a8ae5e
It's working don't touch it.
2024-01-24 11:44:00 -08:00
Mitchell Rosen
8871927c6e
more path, name, and name segment work (doesn't build yet)
2024-01-24 11:01:22 -05:00
Chris Penner
b94e1881f1
Add span annotations to block parsers
2024-01-22 14:53:31 -08:00
mergify[bot]
e7df7ceaeb
Merge pull request #3460 from unisonweb/cp/typechecked-auto-fmt
...
LSP Format support
2024-01-22 19:04:24 +00:00
Mitchell Rosen
51b650ba12
unify name and path parsers
2024-01-18 22:15:54 -05:00
Mitchell Rosen
3677c6bfbb
use name parser in parseSplit'
2024-01-18 13:55:25 -05:00
Mitchell Rosen
81e4ebe013
begin unifying name and path parsers
2024-01-18 13:12:04 -05:00
Mitchell Rosen
c873ddf9b0
⅄ trunk → 22-10-18-backticky-parser
2024-01-17 14:06:43 -05:00
Chris Penner
3d84334061
Merge branch 'cp/typechecked-auto-fmt' into cp/typechecked-auto-fmt-command
2024-01-16 14:24:35 -08:00
Chris Penner
8b011cd3da
Merge remote-tracking branch 'origin/trunk' into cp/typechecked-auto-fmt
2024-01-16 14:24:19 -08:00
Mitchell Rosen
f991abe291
Merge pull request #3720 from unisonweb/22-12-21-lex-names
...
Lex wordy/symboly identifiers into names, not strings
2024-01-16 16:29:47 -05:00
Dan Doel
0540351ff7
Further work on compilation to standalone executables
...
Switch compile.native to using the native Runtime
Tweak the call for compilation to use `racket runner.rkt`, since it
seems like _compiling_ runner.rkt precludes the use of
create-embedding-executable, at least until something further is figured
out.
runner and other racket infrastructure additions for producing the right
input for racket executable creation
2024-01-16 15:24:46 -05:00
Mitchell Rosen
a74c690fd6
minor cleanup
2024-01-16 14:51:56 -05:00
Chris Penner
694d0f8867
Merge remote-tracking branch 'origin/cp/remove-global-names-again' into cp/remove-global-names-again
2024-01-16 11:49:37 -08:00
Chris Penner
ff47ec7813
Merge remote-tracking branch 'origin/trunk' into cp/remove-global-names-again
2024-01-16 11:49:07 -08:00
Mitchell Rosen
447e924063
fix merge markers left in test suite
2024-01-16 14:30:31 -05:00
Chris Penner
410aa1543d
Split off formatting from LSP into parser-typechecker
2024-01-16 11:15:21 -08:00
Mitchell Rosen
bc434ef090
⅄ trunk → 22-12-21-lex-names
2024-01-16 12:21:19 -05:00
Chris Penner
a1194387aa
Fix formatting of type signatures
2024-01-15 16:57:48 -08:00
Chris Penner
c2ceca7c65
Fix parser tests
2024-01-15 15:32:24 -08:00
Chris Penner
9d2c57282f
Parser fixup
2024-01-15 15:25:22 -08:00
Chris Penner
9116b11a2b
Huge speedup to startup time by leveraging branch cache
2024-01-14 22:43:02 -08:00
Chris Penner
ecf3220761
Fix closing annotation for records
2024-01-12 20:28:13 -08:00
Chris Penner
55238ed25b
Fix spans on decls and abilities
2024-01-12 19:58:49 -08:00
Chris Penner
ad200eed76
Fix spanning annotation on watches
2024-01-12 19:00:13 -08:00
Chris Penner
0ddb12830c
Merge remote-tracking branch 'origin/trunk' into cp/typechecked-auto-fmt
2024-01-12 17:34:45 -08:00
Mitchell Rosen
b19edd610c
delete a couple unused imports
2024-01-12 13:02:46 -05:00
Chris Penner
a6cc182272
Merge remote-tracking branch 'origin/trunk' into cp/remove-global-names-again
2024-01-11 15:35:36 -08:00