Archive of stories published by The Functional Programmer

Elm: Decode fields that might be absent in JSON

How to Decode JSON in Elm Part 2

Part1

Imports

import Json.Decode as D exposing (Decoder)
import Json.Decode.Pipeline as D
import Json.Encode as E exposing (Value)

#Experiment 3: Can I solve FizzBuzz using ONLY JS functions, and ABSOLUTELY nothing else

Yup! you heard it right. No variables, operators, numbers, booleans, objects, control structures. Absolutely nothing but but plain old javascript functions.


#Experiment Day 2: Javascript To Haskell

Migrate yesterday's Timer Chrome Extension from javascript to Haskell

Scroll for “EOD update”

But

It is already 3pm, and I don’t want to set up myself for failure. So, let’s…