elm-script
elm-script copied to clipboard
Script.andThen is misleading
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?