Dan Doel
abefe5fa0d
Use auto-generate optional info in indexOf
2023-07-21 17:14:23 -04:00
Dan Doel
61b7ef102f
Merge remote-tracking branch 'origin/trunk' into topic/scheme-reflect
...
- Added hand-coded boolean pseudo-data to unison/data
2023-07-21 17:10:39 -04:00
Dan Doel
96dfb145e9
Remove hard-coded data info in io-handles module
2023-07-21 16:41:41 -04:00
Dan Doel
9fa43024e5
Define Any data info comparable to auto-generated info
...
- Any is not a real data type, so its conventions are not actually
defined by a unison data declaration, but by hand written builtins.
The auto-generator of data info isn't set up to handle such
pseudo-data right now, and because of the hand writing, it isn't
really necessary.
2023-07-21 16:25:41 -04:00
mergify[bot]
e1deb7880e
Merge pull request #4203 from jneira/fix-cabal-build
...
Adapt cabal build to lts-20.26
2023-07-21 20:14:54 +00:00
Arya Irani
d0c7305166
Update contrib/cabal.project
...
Co-authored-by: Travis Staton <hello@travisstaton.com>
2023-07-21 15:55:44 -04:00
Dan Doel
fc1fa54fa8
Add a value roundtrip test case
2023-07-21 13:48:52 -04:00
Dan Doel
5d665024df
Various primops-generated adjusgments
...
- Add an implementation of the Value.value builtin wrapping the
reflection function
- Adjust various tag/link references to use the new naming scheme, which
avoids potential name conflicts with hyphenated names
- Adjust some spots that mediate between normal and chunked strings
- Remove old reference implementations of some functions
- Implement reflection for term/typelinks, code and values
- Fix data reflection: wasn't reflecting the typelink
- Remove some miscellaneous debugging artifacts that had been committed
2023-07-21 13:36:18 -04:00
Dan Doel
f25c7c2bbc
Re-export some stuff from boot.ss
...
- The unison code has been changed to emit term and type link
definitions as part of code generation.
* For typelinks this allows the links to be shared among data
constructors used in the code. Data values directly store a
link to the type they represent.
* The termlinks are added to a map tracking the association of
functions to the links, for reflection purposes
- The association function is also exported from boot so that generated
modules can declare the links for functions they define
2023-07-21 11:52:49 -04:00
Dan Doel
f02297000a
Add a mechanism for associating functions to hashes
2023-07-21 11:52:06 -04:00
Dan Doel
e73a9601b9
Handle more builtins in describe-value
2023-07-21 11:51:35 -04:00
Paul Chiusano
9cbc3ada56
fix type printer tests
2023-07-21 04:18:29 -04:00
pchiusano
906eeec63b
automatically run ormolu
2023-07-21 07:26:49 +00:00
Paul Chiusano
b5ad95cdd5
fix remaining transcript refresh weirdness
2023-07-21 03:20:23 -04:00
Paul Chiusano
c37708befe
add type signature to ensure function gets same inferred type
2023-07-21 02:53:04 -04:00
Paul Chiusano
f0f4582533
refresh more transcripts
2023-07-21 02:26:27 -04:00
Paul Chiusano
7509e3efa1
refresh transcripts
2023-07-21 02:12:22 -04:00
Paul Chiusano
13c545d201
Merge remote-tracking branch 'origin/trunk' into pchiusano/use-insertion
2023-07-21 01:51:35 -04:00
Paul Chiusano
6b7360959b
fix #3239 and add regression test
2023-07-21 01:45:51 -04:00
Paul Chiusano
33ce2fdbc9
regression test (currently failing) for 3239
2023-07-21 01:25:40 -04:00
Paul Chiusano
fd19b2c4f9
don't use raw string syntax within lists, etc, only in bindings
2023-07-21 00:59:28 -04:00
pchiusano
a467eff2ee
automatically run ormolu
2023-07-21 04:56:48 +00:00
Paul Chiusano
fda2ebea69
Fix #3973 and add regression test
2023-07-21 00:55:12 -04:00
Paul Chiusano
3a607de286
ormolu
2023-07-20 23:21:12 -04:00
Paul Chiusano
b716984714
more soft hanging after 'with' for @SystemFw
2023-07-20 23:20:29 -04:00
Paul Chiusano
e25d0965bb
ormolufy
2023-07-20 22:57:04 -04:00
Paul Chiusano
66dc3b0c3d
fix issue reported by @stew where top level do blocks would infer syntactically invalid type
2023-07-20 22:56:13 -04:00
pchiusano
90ade2dcd1
automatically run ormolu
2023-07-20 23:01:04 +00:00
Paul Chiusano
6d627d791c
move binary op printing above softhang logic
2023-07-20 18:46:28 -04:00
Paul Chiusano
04a5bd2988
lists now put trailing ]
on newline when broken onto multiple lines
...
also now referring to list type in delimeters
2023-07-20 17:59:00 -04:00
Paul Chiusano
6ca9f877b0
when breaking a tuple onto multiple lines, put closing paren on its own line
2023-07-20 17:35:56 -04:00
Paul Chiusano
0a4448df36
fix issue with tuple printing
2023-07-20 17:32:29 -04:00
Paul Chiusano
48822e5e8e
allow use clause insertion at top level bindings in certain cases
2023-07-20 17:14:08 -04:00
Arya Irani
9456a155a9
Merge pull request #4209 from unisonweb/23-06-26-reuse-unique-type-guids-v2
2023-07-20 15:28:15 -04:00
Mitchell Rosen
5ebb192a98
⅄ trunk → 23-06-26-reuse-unique-type-guids-v2
2023-07-20 12:24:43 -04:00
Mitchell Rosen
4e8a700f4b
⅄ trunk → 23-06-26-reuse-unique-type-guids-v2
2023-07-20 12:23:20 -04:00
Arya Irani
250808272d
Merge pull request #4148 from unisonweb/parser-export-list
2023-07-20 11:42:46 -04:00
mitchellwrosen
eb3d6abd75
automatically run ormolu
2023-07-20 15:07:30 +00:00
Mitchell Rosen
e41114315b
⅄ trunk → parser-export-list
2023-07-20 11:07:29 -04:00
Paul Chiusano
f837c5b0a8
remove needless reannotation
2023-07-20 10:29:23 -04:00
Arya Irani
8f8b9d9d91
Merge pull request #4210 from unisonweb/nix-caching-docs
2023-07-20 10:10:58 -04:00
pchiusano
abf3442968
automatically run ormolu
2023-07-20 13:57:08 +00:00
Paul Chiusano
f4c49a40ef
better soft hang treatment for last arg of function application
...
breaks the soft hung element before the list of args
2023-07-20 09:55:33 -04:00
Arya Irani
1ef96cebb0
Merge pull request #3799 from unisonweb/lsp/type-sig-hints
2023-07-20 06:50:15 -04:00
Arya Irani
1780542d2d
Update docs/nix.md
2023-07-20 06:44:08 -04:00
Arya Irani
dd1aabd313
Update docs/nix.md
2023-07-20 06:43:18 -04:00
Paul Chiusano
2f90cf4876
Merge remote-tracking branch 'origin/pchiusano/use-insertion' into pchiusano/use-insertion
2023-07-19 21:09:00 -04:00
Paul Chiusano
087157ad24
fix issue reported by @stew
2023-07-19 21:08:38 -04:00
Chris Penner
ec1385aede
Formatting
2023-07-19 16:38:30 -06:00
ChrisPenner
ea97050ea3
automatically run ormolu
2023-07-19 22:22:05 +00:00