Commit Graph

7972 Commits

Author SHA1 Message Date
rlmark
ac2bc29849 fixes tests and transcripts 2021-08-24 11:33:27 -07:00
rlmark
5da63ec4f1 fixes doubleSpace issue 2021-08-23 14:09:27 -07:00
rlmark
79ad0fa8df updates transcripts 2021-08-23 14:05:37 -07:00
rlmark
51e2ea0898 Adds structural keyword requirement 2021-08-23 13:37:56 -07:00
Paul Chiusano
4eaf392e6e
Merge pull request #2346 from unisonweb/topic/unsafe-coerce
Add unsafe.coerceAbilities builtin
2021-08-23 09:04:22 -05:00
Dan Doel
a6d2c29200 Merge branch 'trunk' into topic/unsafe-coerce 2021-08-20 17:09:25 -04:00
Dan Doel
257ae66989 Add unsafe.coerceAbilities builtin 2021-08-20 14:50:05 -04:00
Paul Chiusano
53b513c88d
Merge pull request #2336 from stew/feature/2313
add toRepresentation / fromRepresentation for Float Int
2021-08-20 08:01:18 -05:00
Paul Chiusano
6071c88ac6
Merge pull request #2343 from unisonweb/topic/covariant-variables
Only elide covariant variables in `removePureEffects`
2021-08-20 07:59:55 -05:00
Dan Doel
aa92941db8 Added a transcript showing retained ability variables 2021-08-19 16:46:50 -04:00
Dan Doel
ed3b1402e0 Only elide covariant variables in removePureEffects 2021-08-19 15:49:52 -04:00
Stew O'Connor
1a0bf3c09f rerun transcripts 2021-08-19 08:23:41 -07:00
Stew O'Connor
553c5d9b13 add toRepresentation / fromRepresentation for Float Int
The new functions do bitwise coersion to and from Nat

fixes: #2313
2021-08-18 16:21:38 -07:00
Paul Chiusano
b2311bdddf
Merge pull request #2335 from unisonweb/fix/builtin-pattern-matrix
Fix an issue pattern matching on multiple builtins
2021-08-18 17:36:06 -05:00
Dan Doel
3c06cfe158 Fix an issue pattern matching on multiple builtins
- Default cases were not propagated into specific case branches as they
  should have been.
2021-08-18 17:54:43 -04:00
Simon Højberg
ec623e082b
Merge pull request #2331 from unisonweb/ui-cmd
Add a ucm `ui` command to open the Codebase UI
2021-08-18 11:21:13 -04:00
Simon Højberg
fd87063885 Add a ucm ui command to open the Codebase UI
Add a command, `ui`, that opens the Codebase UI with the current
codebase server URL.
2021-08-18 10:16:46 -04:00
Paul Chiusano
113bc1bebc
Merge pull request #2330 from unisonweb/fix/pattern-match-error
Improve the error message for pattern match failures
2021-08-16 17:16:20 -05:00
Dan Doel
234a81ac59 Improve the error message for pattern match failures 2021-08-16 17:47:30 -04:00
Paul Chiusano
b9f7d2db39
Merge pull request #2305 from ChrisPenner/version-with-date
Include commit-date in version command
2021-08-15 08:08:03 -05:00
Chris Penner
7d8d23246d Reformat to <version> (built on <date>) 2021-08-14 19:27:39 -06:00
mergify[bot]
f1959090a4
Merge pull request #2322 from unisonweb/dedupe-find-results
Codebase server: Dedupe `/find` results
2021-08-13 16:43:06 +00:00
Simon Højberg
b7f1a038e8 Codebase server: Dedupe /find results
Remove duplicate definition entries in the `/find` results. We don't
want to see the same definition twice when it has multiple names. Name
information can be gained with a subsequent request.
2021-08-13 10:47:54 -04:00
Paul Chiusano
cd44258187
Merge pull request #2321 from unisonweb/use-cached-root-branch
Prefer cache when looking up rootBranch
2021-08-12 21:09:34 -05:00
Simon Højberg
3bfb4b0c63 Prefer cache when looking up rootBranch
Attempt to find the passed in rootBranch hash in the cache (3 levels of
children) before attempting to find it in SQLite.

Also update /find sort to prefer matches with lower number of name
segments.
2021-08-12 19:58:58 -04:00
mergify[bot]
af162db4c4
Merge pull request #2280 from ChrisPenner/cli-parser
Convert CLI to optparse-applicative (revived)
2021-08-11 23:41:40 +00:00
Paul Chiusano
b2e121fa01
Merge pull request #2312 from fkretzer/patch-2
fix typo
2021-08-11 18:51:55 -04:00
Chris Penner
7c7b3a2828 Remove redundant import 2021-08-11 09:46:39 -06:00
Fabian Kretzer
885a262657
fix typo 2021-08-11 16:34:49 +02:00
Paul Chiusano
4bddd67a46
Merge pull request #2303 from sullyj3/diffWithCurrentNamespace
Add single argument form of diff.namespace
2021-08-11 09:44:57 -04:00
Paul Chiusano
ebdfbd99dc
Merge pull request #2292 from unisonweb/topic/substring-fzf
Case insensitive substring matching used as pre-filter to fzf
2021-08-11 09:42:45 -04:00
Paul Chiusano
44a6424190
Merge pull request #2307 from unisonweb/fix/2268
Fix a TDNR case for non-function effect references
2021-08-10 22:03:56 -04:00
Dan Doel
0d4c6fdb03 Fix a TDNR case for non-function effect references 2021-08-10 14:10:46 -04:00
James Sully
9a9f94f96c Add single '.' to diff.namespace test that I just spent too long debugging 2021-08-09 18:06:43 +10:00
James Sully
36719e6dac Add a failing test for single argument form of diff.namespace
The output for

```
.b2> diff.namespace .b1
```

should be the same as the output for

```
.> diff.namespace b1 b2
```

What the heck?
2021-08-09 17:00:00 +10:00
James Sully
4c01d26aba Reword diff.namespace help text for consistency 2021-08-09 15:40:07 +10:00
James Sully
2b66c7194e Merge branch 'trunk' into diffWithCurrentNamespace 2021-08-09 15:38:51 +10:00
Simon Højberg
8965e46a25
Merge pull request #2301 from unisonweb/add-rootbranch-and-relative-to-to-list-api
List Endpoint: Add rootBranch & relativeTo params
2021-08-07 18:51:25 -04:00
Chris Penner
f53f218ce6 Include date in version command 2021-08-07 10:24:25 -06:00
James Sully
67cc18b26c Add single argument form of diff.namespace 2021-08-07 18:29:51 +10:00
Paul Chiusano
408d4174c8
Merge pull request #2300 from unisonweb/fix/2297
Expand abilitiy lists in `coalesceWanted`
2021-08-06 19:27:09 -04:00
Simon Højberg
13821a6b85 List Endpoint: Add rootBranch & relativeTo params
Add 2 new query params to the namespace listing `/list` API:
  * `rootBranch` - a hash of the root, typically the codebase hash
  * `relativeTo` - a namespace fqn that the listing should be relative
    to.

This enables URLs that are focused into a specific namespace. For
instance if we were focused on `base.List`:

Fetch all entries in `base.List`:

  `/list?rootBranch=#mycodebasehash&relativeTo=base.List`

Fetch all `Nonempty` entries in `base.List`:

  `/list?rootBranch=#mycodebasehash&relativeTo=base.List&namespace=Nonempty`

Fetch all `Nonempty.append` entries in `base.List`:
  `/list?rootBranch=#mycodebasehash&relativeTo=base.List&namespace=Nonempty.append`

This also fixes a minor bug where the NamespaceListing were including
the root hash as the `namespaceListingHash`. This is now correctly the
hash of the returned NamespaceListing.
2021-08-06 17:38:49 -04:00
Dan Doel
f01417fecf Add a signature to coalesceWanted wrapper 2021-08-06 16:29:37 -04:00
Dan Doel
db7a256662 Perform expansions in coalesceWanted
- Failing to expand the lists was resulting in some odd behavior with
  dropped ability requirements.
2021-08-06 16:23:16 -04:00
Paul Chiusano
32f1842b8e
Merge pull request #2299 from unisonweb/topic/float-patterns
Disallow floating point patterns
2021-08-06 12:55:14 -04:00
Dan Doel
36bf6a6dc9 Add a failing transcript 2021-08-06 11:28:08 -04:00
Dan Doel
fc5b8b86ef Disallow floating point patterns, with an informative error 2021-08-05 18:00:50 -04:00
Arya Irani
a591f91e21
Merge pull request #2274 from unisonweb/test/mergetests
Added more testing for merge command
2021-08-05 08:54:26 -07:00
mergify[bot]
5afc704a06
Merge pull request #2290 from unisonweb/fix/2133
Support suffix-based names lookup directly, and pick more reasonable default names when multiple exist
2021-08-05 15:03:48 +00:00
Paul Chiusano
c652d9d125 Merge remote-tracking branch 'origin/trunk' into fix/2133
# Conflicts:
#	unison-src/transcripts/alias-many.output.md
2021-08-05 10:28:23 -04:00