Commit Graph

9935 Commits

Author SHA1 Message Date
Dan Doel
de015ba062 Document renameCtx 2022-03-30 17:26:49 -04:00
Dan Doel
ca1509a7b7 Fix a bug when renaming variables during ANF translation
When a binding like:

  let v = u

arose during the translation, the ANF could would simply rename v to
u. However, it was only doing it in the 'body' portion of the code,
not an associated context.
2022-03-30 17:21:32 -04:00
Chris Penner
f1a7bc210c
Authenticate UCM with Codebase Servers. (#3000)
* The auth.login command is hidden until it's officially supported.
2022-03-30 13:19:48 -06:00
Paul Chiusano
d520fd3736 Merge remote-tracking branch 'origin/trunk' into topic/contained-ns
# Conflicts:
#	unison-cli/src/Unison/CommandLine/InputPatterns.hs
2022-03-30 10:44:56 -05:00
Paul Chiusano
7163508b62
Merge pull request #3009 from unisonweb/fix/relaxed-decompilation
Save information for decompiling non-closed definitions
2022-03-29 14:45:38 -05:00
Chris Penner
2106ed69ea
Merge pull request #2996 from unisonweb/cp/input-reader
Add ReaderT to Action and wrap Action in its own monad
2022-03-29 13:29:54 -06:00
Chris Penner
12731aae40
Merge pull request #2997 from unisonweb/cp/hidden-inputs
Add ability to hide ucm commands until we're ready to release them.
2022-03-29 13:29:32 -06:00
Dan Doel
fc296793ba Save information for decompiling non-closed definitions
Previously in cases like:

    let
      f x = ...
      g y = ... f ...
      ...

we would not save decompilation information for `g`, because it wouldn't
be possible to guarantee that the output of decompilation actually made
sense (for instance, if `g` is decompiled, it will not mention `f`.

However, this seems to block some useful documentation, even in cases
where it doesn't seem like such intermediate definitions would need to
be decompiled. So, it seems like a better trade-off to just allow
decompilation, and accept that some output might be difficult to
understand. Such output can be avoided when writing documentation.
2022-03-29 13:59:44 -04:00
Paul Chiusano
d9c339c967
Merge pull request #2998 from unisonweb/fix/assorted
Some assorted fixes
2022-03-28 13:15:12 -05:00
Paul Chiusano
4a5a56c48c Sort dependents output by name, not by hash! And put name in first column, rather than hash. 2022-03-28 12:39:15 -05:00
Paul Chiusano
34c4f46757 dependents command now correctly shows local dependents
didn't bother with dependents.global
2022-03-28 12:08:52 -05:00
Paul Chiusano
9cb116a80b Add find.global command. Tweak output messages to suggest it on no results. 2022-03-27 16:59:40 -05:00
Paul Chiusano
f752ff7abc Switch to self-contained namespace model 2022-03-27 16:52:42 -05:00
Dan Doel
da1275346b Standardize context handling in ANF serialization 2022-03-24 15:26:48 -04:00
Chris Penner
eea51284d1 Add ability to hide ucm commands until we're ready to release them. 2022-03-24 12:07:07 -06:00
Chris Penner
da9c50d2f1 Add ReaderT to Action and wrap Action in its own monad 2022-03-24 10:46:07 -06:00
Jens Petersen
1b575f26c4
stack.yaml: update to final lts-18.28 snapshot 2022-03-23 11:49:31 +08:00
Chris Penner
60d3fea617 Pass ucm version through to command layer 2022-03-22 11:02:03 -06:00
Dan Doel
46e5c910ce Some serialization related tweaks
1. Allow for serializing `Code` with builtin foreign references to
   binary, using a mapping to the builtin name used. This is useful for
   parsing the binary and emitting scheme within unison.
2. Fixed an encoding error where variable indexing was wrong. The
   context maintained for serialization is stored backwards, but
   simultaneous bindings of multiple variables were being pushed on in
   order, which resulted in reversing the order of variables in some
   cases.
2022-03-21 15:26:22 -04:00
Dan Doel
9fc61ff292 Avoid redundant floating due to signatures
Due to a missing case in the floating logic, definitions like:

    f : ...
    f x y z = ...

were being turned into:

    f : ...
    f =
      g x y z = ...
      g

Because the compiler thought the lambda needed to be floated out of the
signature ascription, as the original `f` is the same as:

    f = (x y z -> ...) : ...

This is obviously not necessary, as the signature will be erased anyway,
and just results in extra indirection.
2022-03-21 13:29:37 -04:00
Chris Penner
863d989856
Use a split for fzf to show previous work. (tput doesn't seem to work on windows terminal) (#2984)
* Use a split for fzf to show previous work.

* Handle most errors by just silently returning empty results.
2022-03-19 12:54:28 -06:00
Rúnar
fad4c0d86e
Merge pull request #2990 from unisonweb/topic/updateNoPatch
Add update.nopatch command
2022-03-19 13:47:06 -04:00
Arya Irani
acfa8ebf18
Merge pull request #2968 from unisonweb/remove-open-access-control-header 2022-03-19 13:24:45 -04:00
Rúnar
a20a98a61a Add update.nopatch command 2022-03-17 21:49:25 -04:00
mergify[bot]
54e96e1e89
Merge pull request #2982 from unisonweb/cp/pretty-printer-package
Split off pretty-printer package
2022-03-10 18:19:19 +00:00
Chris Penner
ee8ac1c489 Merge branch 'trunk' into cp/pretty-printer-package 2022-03-10 10:39:08 -06:00
Chris Penner
578573c459
Fix broken windows release automation (#2976)
* Fix broken commands on windows release automation
2022-03-10 10:38:28 -06:00
Chris Penner
bdb7aa793c Fix pretty-printer tests 2022-03-09 11:39:35 -06:00
Chris Penner
f0267f1099 Revert unexpected changes to release.yaml 2022-03-09 11:25:29 -06:00
Chris Penner
0adda1a855 Separate pretty-printer test suite 2022-03-09 11:21:24 -06:00
Chris Penner
763e0ec834 Split off pretty-printer package 2022-03-09 11:14:22 -06:00
Mitchell Rosen
ab9e33b7ce indicate the transcript shows a bug 2022-03-09 11:01:42 -05:00
Chris Penner
ed8a1f3352
Merge pull request #2977 from unisonweb/cp/disable-windows-release
Disable windows release until we can fix it properly.
2022-03-08 17:18:17 -06:00
Chris Penner
97cce8d231 Disable windows release until we can fix it properly.
We'll use a manual release for now.
2022-03-08 15:49:30 -06:00
Mitchell Rosen
b39919d955 add transcript demonstrating an update bug 2022-03-08 11:58:30 -05:00
mergify[bot]
4ff55dc252
Merge pull request #2973 from unisonweb/updateWelcomeUrls
updating website url references to new website
2022-03-08 00:56:01 +00:00
Chris Penner
d70168f2b1
Vacuum once after all migrations have been completed. (#2972) 2022-03-07 16:15:21 -06:00
Rebecca Mark
e0a8a832bf updates transcripts 2022-03-07 14:11:10 -08:00
Rebecca
1755bea338
Update Welcome.hs 2022-03-07 12:30:30 -08:00
Rebecca
97430c70b2
Update Welcome.hs 2022-03-07 12:29:54 -08:00
Rebecca
58a17753b6
Update PrintError.hs 2022-03-07 12:28:40 -08:00
Chris Penner
34791ed870
Merge pull request #2967 from unisonweb/cp/v3-schema
* Add schema 2 to 3 migration
2022-03-07 11:08:33 -06:00
Rebecca Mark
8fb0448157 updating website url references to new website 2022-03-04 14:20:24 -08:00
Chris Penner
355fce4c71 Add note for when migration is finished. 2022-03-03 15:08:03 -06:00
Chris Penner
500260a01a Merge branch 'trunk' into cp/v3-schema 2022-03-03 14:38:19 -06:00
Simon Højberg
e8c1295ffe Remove the access control header to limit CORS 2022-03-03 14:34:13 -05:00
Chris Penner
7843e48cdd
Merge pull request #2958 from unisonweb/cp/ormolu
Ormolu Everything.
2022-03-03 13:31:43 -06:00
Chris Penner
a29316fa08 Merge branch 'trunk' into cp/ormolu 2022-03-03 12:31:57 -06:00
Chris Penner
1e1b1e9ba7 Bump schema version to 3 in create.sql 2022-03-03 12:27:09 -06:00
mergify[bot]
09d245b67f
Merge pull request #2965 from ceedubs/compile-output-changes
Rename compile.output to compile
2022-03-03 17:57:03 +00:00