haskell / haskell/aeson

There doesnt' seem to be `throwDecodeFile :: (HasCallStack, FromJSON a) => FilePath -> IO a`

Open Beginner friendly
#1,188 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.