Skip to content

Instantly share code, notes, and snippets.

View DavidHernandez's full-sized avatar
📎

David Hernández DavidHernandez

📎
View GitHub Profile
@natec425
natec425 / itemDecode.elm
Created October 26, 2016 15:08
Elm - Json.Decode reuse with Extensible Records
module Scratch exposing (..)
import Json.Decode exposing (..)
type alias Item a =
{ a
| field1 : String
, field2 : String
, field3 : String