ianmackenzie / ianmackenzie/elm-script

Script.andThen is misleading

Open
#17 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Elm
Stars
34
Forks
5
PR merge metrics
No merged PRs in 30d

Description

I tried using `Script.andThen` like this
```
Script.File.readOnly init.userPrivileges path
|> Script.File.read
|> Script.andThen (\text -> Script.succeed text)
```
I was expecting it to work the same way `andThen` works in most parser/decoder packages. Finally I realized that I need to use `thenWith` instead. Maybe `andThen` and `thenWith` could swap names?

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.