Comments (4)
I would like to reopen this issue because I'm considering removing support for trailing commas and bars now that I'm standardizing Dhall's grammar
The two main reasons that I suggest removing them are:
-
They complicate the grammar, especially when combined with support for union literals that let you assign a value in the interior of the literal, like this:
< Foo : Integer, Bar = True, Baz : Double >
-
The new
dhall-format
utility does not make use of trailing commas or bars
Would that be alright or do you still feel that Dhall should support trailing commas and bars?
from dhall-haskell.
I fixed the confusing error message with baa08c6, so you should now get these errors:
$ echo "[1,2,3,]" | dist/build/Dhall/dhall
(stdin):1:8: error: expected: "''",
"(", "+", "-", "[", "\8704",
"\955", "\\", "forall", "if",
"let", "merge", built-in value,
double, import, integer, label,
list literal, natural,
record literal, record type,
string, union literal,
union type
[1,2,3,]
^
$ echo "{foo=2,bar=4,}" | dist/build/Dhall/dhall
(stdin):1:14: error: expected: label
{foo=2,bar=4,}
^
I'll add support for trailing commas in a separate commit
from dhall-haskell.
Yeah, sure.
from dhall-haskell.
Alright, thanks!
from dhall-haskell.
Related Issues (20)
- Failure to Decode Expression with extended Builtin Function HOT 1
- Document the significance of `Nothing :: Maybe CharacterSet`
- Please report symlink contents for `Error: Missing file` HOT 2
- Error generating docs
- combine `let` bindings in `dhall format` HOT 1
- Support request for `aeson` 2.2 in `dhall` HOT 2
- dhall-to-yaml does not properly quote strings HOT 1
- Can not install dhall-lsp-server HOT 2
- Allow hnix 0.17
- Hackage build failed for dhall-toml-1.0.3
- Get back into Stackage Nightly with GHC 9.8 HOT 1
- Missing binaries in release HOT 1
- Hackage release for dhall-lsp-server HOT 1
- Build failure on GHC 9.8.1: 'Illegal invisible type variable binder'
- Report imports HOT 2
- dhall-docs: Prelude.head: empty list
- Suggesting a new construct for dealing with optional fields in Dhall defaults
- dhall-json bound on aeson can be relaxed
- Questions regarding the right strategy for upgrading to ghc-9.8
- Build failure on macos-latest stack.yaml HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhall-haskell.