Skip to content

Instantly share code, notes, and snippets.

Avatar

Asger Nielsen opvasger

View GitHub Profile
View Example.elm
module Example exposing (Msg, encodeMsg, msgDecoder)
import Html
import Json.Decode
import Json.Encode
{--Usage Example
View Enum.elm
module Enum exposing (listAll)
{-
People on the Elm forums have discussed problems
enumerating all constructors of a custom-type.
This solution is pretty small, and requires only
a function that loops from one constructor
to the next.
You can’t perform that action at this time.