Fixed - the correct solution is:
import Http exposing ( .. )
httpErrorString : Http.Error -> String
httpErrorString error =
case error of
Http.BadStatus ( response ) ->
"bad status [" ++ response.body ++ "]"
For anyone else confused, the problem is a misunderstanding of types vs
union type tags - this discussion
helped:
https://groups.google.com/forum/#!searchin/elm-discuss/pattern$20match|sort:relevance/elm-discuss/h_za5rIIljk/ck9feb3tEAAJ
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.