There doesnt' seem to be `throwDecodeFile :: (HasCallStack, FromJSON a) => FilePath -> IO a`
Open
Beginner friendly
- Dominant language
- Haskell
- Stars
- 1.3k
- Forks
- 336
- Avg merge
- 3d 7h
- Merged PRs (30d)
- 4
Description
though there are `throwDecode` and `decodeFile`
I think I didn't notice to add those, as I probably never used `decodeFile*` variants myself, but once they exist, it would make sense to have `throwDecodeFile` which would throw `AesonException`, won't it?
Contributor guide
Research direction
Locate the existing throwDecode and decodeFile definitions and read nearby tests or related decodeFile variants first. Add the missing throwDecodeFile API with the requested AesonException behavior, then run the relevant test suite and verify that the function is exposed consistently with the existing helpers.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- haskell
- Domain
- api, backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100