Closed tilmans closed 5 years ago
Thank you for reporting this! I remember fixing this recently, and my development build looks like it has the word added:
import Json.Encode as Json
func coordinates =
coordinates
|> List.map Json.float
|> Json.list
-- TYPE MISMATCH ------------------------------------------------------ temp.elm
This function cannot handle the argument sent through the (|>) pipe:
4| coordinates
5| |> List.map Json.float
6| |> Json.list
^^^^^^^^^
The argument is:
List Json.Value
But (|>) is piping it to a function that expects:
a -> Json.Value
The fix should come out with Elm 0.19.1 which has a bunch of other improvements.
I would expect: "... But (|>) is piping it to a function that expects..."