Avi-D-coder / implicit-hie

Auto generate a stack or cabal multi component hie.yaml file
BSD 3-Clause "New" or "Revised" License
201 stars 17 forks source link

User error: key "packages" not found #14

Closed FPtje closed 4 years ago

FPtje commented 4 years ago

When a stack.yaml file is missing the packages field, gen-hie will fail with the following error:

gen-hie: user error (AesonException "Error in $: key \"packages\" not found")

When adding the following to the stack.yaml file:

packages:
  - .

gen-hie works just fine. This seems redundant, though. Would it be possible to assume the singleton list containing . as default?

fendor commented 4 years ago

Does stack accept that? 0.o I always thought that is a mandatory field

FPtje commented 4 years ago

Yeah, stack appears to act the same with or without that field in this case.