yaml icon indicating copy to clipboard operation
yaml copied to clipboard

Add pipeline functionality

Open jxxcarlson opened this issue 5 years ago • 0 comments

Add pipeline functionality so that you can do this:

    type alias Foo =
        { bar : String
        , baz : Int
        }
    fooDecoder : Decoder Foo
    fooDecoder =
       succeed Foo
            |> required "bar" string
            |> required "baz" int

See Yaml.Decode end of file. Has elm-verify-examples tests in the docs for the added required function.

jxxcarlson avatar Nov 24 '19 17:11 jxxcarlson