elm-script icon indicating copy to clipboard operation
elm-script copied to clipboard

Script.andThen is misleading

Open MartinSStewart opened this issue 4 years ago • 4 comments

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?

MartinSStewart avatar Jun 04 '20 09:06 MartinSStewart