Created
April 12, 2019 13:18
-
-
Save b0oh/75cb5e4bca4f57f4c249da0981b4f930 to your computer and use it in GitHub Desktop.
funny.elm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zayoba : Decode.Value -> String | |
zayoba value = | |
let | |
decoder = Decode.map (Encode.encode 0) Decode.value | |
in | |
case Decode.decodeValue decoder value of | |
Ok result -> | |
result | |
_ -> | |
"zayoba" | |
yopta : Result Http.Error Decode.Value -> Message | |
yopta result = | |
case result of | |
Ok value -> | |
Authenticated (zayoba value) | |
Err reason -> | |
Qwe | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment