Chris Gibbs
a66e8a6346
Get rid of some surplus parentheses in pretty-printed patterns
...
(And add a couple of failing tests.)
2018-11-26 21:29:36 +00:00
Chris Gibbs
2b2b0d0482
Force line breaks when pretty-printing case statements
...
So
case x of
12 -> foo
13 -> bar
instead of
case x of 12 -> foo; 13 -> bar
(The latter doesn't parse.)
2018-11-26 21:29:36 +00:00
Chris Gibbs
55d4eaa17a
Stop pretty-printing surplus brackets in (f x) + (g y)
...
Not convinced this is a total win in terms of ease of code-reading (look at the diff of the tests) but let's see how we go.
2018-11-26 21:29:36 +00:00
Chris Gibbs
41fe0cfca0
Fix double-indentation the pretty-printer was sometimes doing
2018-11-26 21:29:36 +00:00
Chris Gibbs
9700fd6fef
Fix pretty-printing of let-bound functions
...
Instead of
let f = x -> x + 1
we now get
let f x = x + 1
2018-11-26 21:29:36 +00:00
Chris Gibbs
956d92fa8c
Tweak development.markdown
2018-11-26 21:29:36 +00:00
Chris Gibbs
ef44223fd4
Update development.markdown with install instructions and clues for running the codebase editor
...
Not clean-tested so likely broken. Only tried on Ubuntu.
No instructions given for people who already have a scala install.
Not entirely clear whether/why bloop demands a single global scala version on the path.
Clues about using the codebase editor very much lacking.
2018-11-26 21:29:36 +00:00
Chris Gibbs
f304ff5d0a
Add TODO comments for bugs found testing pretty-printer on contents of unison-src
2018-11-26 21:29:36 +00:00
Arya Irani
bc65f460a7
start of doc on type decls
2018-11-20 18:15:07 -05:00
Paul Chiusano
77ed922047
beefed up 'list' command to show type signatures
2018-11-13 18:24:50 -05:00
Paul Chiusano
38d80e82b1
tweaks to ordering of definitions in demo files
2018-11-13 09:21:07 -05:00
Paul Chiusano
b87cfe9370
demo tweaks
2018-11-12 14:36:47 -05:00
Paul Chiusano
4bd3442453
another pending test
2018-11-12 13:39:12 -05:00
Paul Chiusano
35614bf8e3
another pending test
2018-11-12 12:16:11 -05:00
Paul Chiusano
ca1f9d69a9
term printing tweaks
2018-11-12 12:04:42 -05:00
Paul Chiusano
58e8f928c2
add another pending test
2018-11-11 22:21:05 -05:00
Paul Chiusano
d1a8a4019b
fill in todo for EffectBind pattern hashing
2018-11-11 22:12:29 -05:00
Paul Chiusano
5d62bef25f
fix issue where top level component vars differed from original user vars
...
this was causing hashing to bomb for top level recursive terms
2018-11-11 19:52:11 -05:00
Paul Chiusano
fc9e168b4f
When doing an 'add', we now strip out watch expressions
2018-11-11 18:24:16 -05:00
Paul Chiusano
ce7215d564
using prettyprint env to print out refs
2018-11-11 17:57:42 -05:00
Paul Chiusano
1374348994
don't terminate the repl if rename target doesn't exist
2018-11-11 17:38:20 -05:00
Paul Chiusano
12c2f0f878
use Lexer.symbolyId to decide whether to print an operator infix
2018-11-11 17:34:59 -05:00
Paul Chiusano
9b736597ec
merge latest @atacratic pretty-printing work, tests all passing
2018-11-11 17:20:33 -05:00
Paul Chiusano
a5e19d4d46
Merge remote-tracking branch 'origin/topic/termprinter4' into topic/codebase-editor
2018-11-11 17:02:46 -05:00
Paul Chiusano
adffc236a9
constructors get qualified names
2018-11-11 16:40:10 -05:00
Paul Chiusano
7089364803
Close token printed as empty string
2018-11-11 15:11:11 -05:00
Paul Chiusano
a58032976a
get rid of redundant fields of PrettyPrintEnv
2018-11-11 15:08:08 -05:00
Paul Chiusano
61505a266a
can now run code that references preexisting defs
2018-11-11 14:23:30 -05:00
Chris Gibbs
851baea1ea
Merge branch 'wip/codebase-editor' into topic/termprinter4
2018-11-11 17:08:47 +00:00
Chris Gibbs
23ccae59b1
Support for infix definitions in TermPrinter.prettyBinding
2018-11-11 17:00:44 +00:00
Arya Irani
1a6b7cd3ff
Branch.termNamespace maps Name to Referent
2018-11-10 17:49:05 -05:00
Arya Irani
62ed12a80b
V0.getReferent/putReferent
2018-11-10 16:01:59 -05:00
Arya Irani
88f7ac6977
print scala hashes using base58 to match haskell
2018-11-10 16:01:10 -05:00
Paul Chiusano
d579b99ee5
using fuzzy matching in ls
2018-11-10 00:28:21 -05:00
Paul Chiusano
1483b68d8c
one line fix for issue where TDNR decisions not being substituted into TLCs
2018-11-09 22:25:50 -05:00
Arya Irani
113740f20b
added builtin types to the CLI TypeLookup
2018-11-09 21:33:43 -05:00
Arya Irani
2dc4f993b3
minor cleanup
2018-11-09 20:56:47 -05:00
Arya Irani
7e9c7426b6
448 tests passing, 0 failures
2018-11-09 18:24:44 -05:00
Arya Irani
2a9fd1d69f
trace the TypeLookup passed to TDNR
2018-11-09 18:04:21 -05:00
Arya Irani
f7fcef93fa
added suggestions trace to get our bearings
2018-11-09 17:34:19 -05:00
Arya Irani
ff892bb7c7
haskell tests 430 passing, 18 failed...
...
"typechecker.tests/ask-inferred.u"
"typechecker.tests/console.u"
"typechecker.tests/language-reference.u"
"typechecker.tests/map-reduce.u"
"typechecker.tests/pattern-matching.u"
"typechecker.tests/sequence-at-0.u"
"typechecker.tests/state2a-min.u"
"typechecker.tests/state2a.u"
"typechecker.tests/state2b-min.u"
"typechecker.tests/state2b.u"
"typechecker.tests/state4.u"
"typechecker.tests/tdnr.u"
"typechecker.tests/tdnr2.u"
"typechecker.tests/tdnr3.u"
"typechecker.tests/tdnr4.u"
"typechecker.tests/tictactoe.u"
"typechecker.tests/tictactoe0.u"
"typechecker.tests/tictactoe2.u"
2018-11-09 16:52:45 -05:00
Arya Irani
c5c8cec987
Unisonfile.dependencies
2018-11-09 16:20:26 -05:00
Paul Chiusano
765a8a7977
refactoring in progress
2018-11-09 15:27:24 -05:00
Paul Chiusano
264c3ef32e
wip
2018-11-09 11:55:13 -05:00
Runar Bjarnason
d9e9a2e035
Names refactoring
2018-11-08 17:09:16 -05:00
Paul Chiusano
2680fa5412
wip
2018-11-08 12:24:43 -05:00
Paul Chiusano
c02891a940
test parsing and typechecking calls existing function now
2018-11-08 10:46:00 -05:00
Paul Chiusano
23fcc4f060
qualified usage of Names.termNames
2018-11-08 10:45:33 -05:00
Paul Chiusano
1a7920c62a
added comment as to likely source of bug
2018-11-07 17:01:57 -05:00
Runar Bjarnason
849bc0ae3b
This calls for a commit
2018-11-07 16:38:04 -05:00