bitemyapp / bitemyapp/esqueleto

use `decodeUtf8'` in JSONB's PersistField instance

Open
#338 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Haskell
Stars
399
Forks
107
Avg merge
1d 17h
Merged PRs (30d)
1

Description

```hs
first (badParse $ TE.decodeUtf8 bs) $ eitherDecodeStrict bs
```
could probably be
```hs
import Data.Either (fromRight)
...
first (badParse (fromRight "" $ TE.decodeUtf8' bs)) $ eitherDecodeStrict bs
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.