Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								fd8c13010a 
								
							 
						 
						
							
							
								
								added links in docs  
							
							
							
						 
						
							2024-03-14 15:32:04 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c4172be7ce 
								
							 
						 
						
							
							
								
								fixed type parser -> parsers  
							
							
							
						 
						
							2024-03-14 11:35:59 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								bf96a59bbc 
								
							 
						 
						
							
							
								
								example and docs for backtrackable  
							
							
							
						 
						
							2024-03-14 11:26:23 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3ebaa592f6 
								
							 
						 
						
							
							
								
								function versions for loc and map_with_arena macros  
							
							
							
						 
						
							2024-03-14 11:19:18 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								8ae0d99707 
								
							 
						 
						
							
							
								
								example for between  
							
							
							
						 
						
							2024-03-14 11:10:28 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								805ca70f75 
								
							 
						 
						
							
							
								
								example and docs for either  
							
							
							
						 
						
							2024-03-13 22:10:35 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								5714db6528 
								
							 
						 
						
							
							
								
								example and docs for debug  
							
							
							
						 
						
							2024-03-13 21:58:45 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								956bfdfde0 
								
							 
						 
						
							
							
								
								aero_or_more and one_or_more  
							
							
							
						 
						
							2024-03-13 21:21:51 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								2fc7b939da 
								
							 
						 
						
							
							
								
								example and docs for map  
							
							
							
						 
						
							2024-03-13 14:04:20 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								6db6629417 
								
							 
						 
						
							
							
								
								examples and docs for word2 and word3  
							
							
							
						 
						
							2024-03-12 21:18:30 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b6d5425f6e 
								
							 
						 
						
							
							
								
								examples and docs for word1_indent  
							
							
							
						 
						
							2024-03-12 20:42:35 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								7884d92e29 
								
							 
						 
						
							
							
								
								example and docs for word1  
							
							
							
						 
						
							2024-03-12 20:11:17 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								47b537c278 
								
							 
						 
						
							
							
								
								added example for one_of_with_error  
							
							
							
						 
						
							2024-03-12 15:43:08 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b146030fff 
								
							 
						 
						
							
							
								
								docs and examples for one_of  
							
							
							
						 
						
							2024-03-12 15:03:14 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									faldor20 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3fe3a3439a 
								
							 
						 
						
							
							
								
								cleanup fetching module docs  
							
							
							
						 
						
							2024-03-11 15:17:46 +10:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								09dbc93b7d 
								
							 
						 
						
							
							
								
								docs and example for and  
							
							
							
						 
						
							2024-03-10 21:38:17 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								bf40247aec 
								
							 
						 
						
							
							
								
								example and docs for fail  
							
							
							
						 
						
							2024-03-10 15:06:52 -06:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								4e33a6c4b3 
								
							 
						 
						
							
							
								
								fail_when example and docs  
							
							
							
						 
						
							2024-03-09 21:25:57 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3770b72530 
								
							 
						 
						
							
							
								
								example for succeed  
							
							
							
						 
						
							2024-03-09 19:22:54 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c582ad6767 
								
							 
						 
						
							
							
								
								example for skip_second  
							
							
							
						 
						
							2024-03-09 18:46:52 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								eed1957180 
								
							 
						 
						
							
							
								
								skip_first example  
							
							
							
						 
						
							2024-03-09 18:42:33 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								cad29623f9 
								
							 
						 
						
							
							
								
								loc macro example  
							
							
							
						 
						
							2024-03-08 22:37:59 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								9c67ae15be 
								
							 
						 
						
							
							
								
								example for optional  
							
							
							
						 
						
							2024-03-08 22:04:27 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								f3666b346b 
								
							 
						 
						
							
							
								
								example for keyword_e  
							
							
							
						 
						
							2024-03-05 18:51:28 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								997222a1ce 
								
							 
						 
						
							
							
								
								removed imports and example for then  
							
							
							
						 
						
							2024-03-04 23:14:48 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								62e6e34470 
								
							 
						 
						
							
							
								
								examples for allocated  
							
							
							
						 
						
							2024-03-03 21:55:59 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3cb0edf958 
								
							 
						 
						
							
							
								
								added and_then docs  
							
							
							
						 
						
							2024-03-03 12:34:56 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								3f2d2dd908 
								
							 
						 
						
							
							
								
								added and examples  
							
							
							
						 
						
							2024-03-03 11:50:24 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								58c654a092 
								
							 
						 
						
							
							
								
								removed erroneus wrapping function  
							
							
							
						 
						
							2024-03-03 11:32:18 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b7181af8f3 
								
							 
						 
						
							
							
								
								better formatting for word docs  
							
							
							
						 
						
							2024-03-03 11:15:09 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Trevor Settles 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								ff19d1b834 
								
							 
						 
						
							
							
								
								pass and fail examples  
							
							
							
						 
						
							2024-03-03 11:02:02 -07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Folkert 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								b0d57587e3 
								
							 
						 
						
							
							
								
								List.get with negative index in repl  
							
							
							
						 
						
							2024-01-28 22:21:40 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Richard Feldman 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								40fba2f1af 
								
							 
						 
						
							
							
								
								Fix parsing strings with non-interpolated "$"  
							
							
							
						 
						
							2024-01-27 16:28:01 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								eb68bf943a 
								
							 
						 
						
							
							
								
								Merge branch 'main' into module-params  
							
							
							
						 
						
							2024-01-27 09:36:20 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Richard Feldman 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								07ddd272e2 
								
							 
						 
						
							
							
								
								Merge pull request  #6361  from faldor20/fix-lang-server-hang  
							
							... 
							
							
							
							Fix hang from bad imports 
							
						 
						
							2024-01-21 22:06:48 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c617963b22 
								
							 
						 
						
							
							
								
								Load and can imports inside defs  
							
							... 
							
							
							
							After parsing a module, we now recursively traverse the tree to find
all imports inside Defs, not just the top-level ones.
Previously, imported modules were available in the entire file,
but that's no longer the case. Therefore, Scope now keeps track of
imported modules and Env::qualified_lookup checks whether a module
is available in the provided scope.
Note: Unused import warnings are still global and need to be updated. 
							
						 
						
							2024-01-20 08:39:33 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								710d62f754 
								
							 
						 
						
							
							
								
								Load and can new top-level imports  
							
							... 
							
							
							
							Previously, all imports were available in the header, so we could start
processing dependencies as soon as we parsed it. However, the new imports
are treated as defs, so we have to parse the whole module to find them.
This commit essentially moves the dependency resolution from the `LoadHeader`
phase to the `Parse` phase, and it updates canonicalization to introduce
module symbols into scope when a `ValueDef::ModuleImport` is encountered.
NOTE:
- The `imports` header still parses, but it's no longer wired up. I will remove
it in an upcoming commit.
- Ingested files and imports that appear in nested expressions are not
yet supported by load 
							
						 
						
							2024-01-20 08:39:31 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								11e0202eb9 
								
							 
						 
						
							
							
								
								Parse inline imports and ingested files at the expression level  
							
							... 
							
							
							
							```
numbers =
    import "numbers.json" as numbersJson : Str
    import json.Decode exposing [decode, list, int]
    numbersJson
    |> decode (list int)
    |> Result.withDefault []
``` 
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								2d93f0c3f1 
								
							 
						 
						
							
							
								
								Extract ModuleImport/IngestedFileImport into structs for reuse  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								4d6e641864 
								
							 
						 
						
							
							
								
								Parse and format inline ingested file imports  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								42e755677c 
								
							 
						 
						
							
							
								
								Simply import parsing and formatting by using header::KeywordItem  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								65ce811587 
								
							 
						 
						
							
							
								
								Parse and format import package shorthand  
							
							... 
							
							
							
							The original proposal [1] suggested dropping the package shorthand,
but we later decided to keep it [2] to improve UX.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit?usp=sharing 
[2] 385104011 
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								c56091ee3e 
								
							 
						 
						
							
							
								
								Module Params' proposal import syntax  
							
							... 
							
							
							
							I previously implemented the syntax in "Proposal: Module and Package Changes" [1]:
```
import [map, map2] from JsonDecode as JD
```
However, we decided [2] to use the one that appears in "Proposal: Module Params" [3]:
```
import JsonDecode as JD exposing [map, map2]
```
The new implementation also now supports comments and newlines between all the tokens.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit 
[2] 405410612https://docs.google.com/document/d/110MwQi7Dpo1Y69ECFXyyvDWzF4OYv1BLojIm08qDTvg/edit  
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								5cd084b73c 
								
							 
						 
						
							
							
								
								Parse and format inline import with exposed names  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								76d799ea13 
								
							 
						 
						
							
							
								
								Parse and format aliases in import defs  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Agus Zubiaga 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								933fde77a0 
								
							 
						 
						
							
							
								
								Parse and format top-level import defs with no alias or exposed members  
							
							
							
						 
						
							2024-01-20 08:35:50 -03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Richard Feldman 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								443b3c8851 
								
							 
						 
						
							
							
								
								Fix single-quote dollar parsing  
							
							
							
						 
						
							2024-01-13 15:41:35 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Richard Feldman 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								af8e9c7292 
								
							 
						 
						
							
							
								
								Parse deprecated interpolation syntax differently  
							
							
							
						 
						
							2024-01-06 21:49:00 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									faldor20 
								
							 
						 
						
							
							
							
							
								
							
							
								f36befdd4c 
								
							 
						 
						
							
							
								
								made nicer error  
							
							
							
						 
						
							2024-01-07 11:28:05 +10:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Richard Feldman 
								
							 
						 
						
							
							
								
								
							
							
							
								
							
							
								163bde0c41 
								
							 
						 
						
							
							
								
								Update tests to use $(...) interpolation  
							
							
							
						 
						
							2024-01-06 15:06:30 -05:00