Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
stack new -- AesonException #2275
Works fine if I change the year line to:
I think it's pretty clear what's going on here, but the documentation at http://docs.haskellstack.org/en/stable/yaml_configuration/ doesn't mention the
I think it could be fixed by requiring that
I took a quick look at this as another place to dip into the stack codebase. According to what's in
Is this what you would expected? Would you ever want to use a non-current year in the config file?
However, even if the value is never used you still see the exception when parsing
@tswelsh Sorry for the delay in responding, I am currently cleaning up my browser window with "TODO" stack issues.
Good question. It seems arbitrary to disallow it, so it's allowed but not recommended.
All parameters should be allowed to be Number. A similar change recently happened in hpack - sol/hpack@8aa7537#diff-87ed521fa5387e6fab1b0cdf6786eb63R76
I'm actually quite fine just forcing users to use strings. Leaning towards doing that and just making this a documentation issue. With Number, the user may not get the exact text they entered.