Skip to content

Instantly share code, notes, and snippets.

View rtfeldman's full-sized avatar

Richard Feldman rtfeldman

View GitHub Profile
@rtfeldman
rtfeldman / Main.elm
Created May 24, 2017 06:32 — forked from anonymous/Main.elm
Field Generation Algorithm for Evan
module Main exposing (..)
import Html exposing (pre, text, Html)
main : Html a
main =
-- List.range 0 200
-- List.range 3364 3388
-- List.range 216358 216375
@rtfeldman
rtfeldman / GameState.elm
Created April 1, 2020 12:15 — forked from rupertlssmith/GameState.elm
Exploring State Machines with phantom types in Elm
module GameState
exposing
( Game(..)
, GameDefinition
, PlayState
, loading
, updateGameDefinition
, updatePlayState
, updateScore
, toReady
@rtfeldman
rtfeldman / README.md
Created March 8, 2022 12:02 — forked from j-maas/README.md
Roc: Open and closed tag unions

Roc: Open and closed tag unions

Motivation

The goal of open and closed tag unions is to allow both exhaustiveness checking and composition of tags. The main motivating pieces of code are:

getSettings = \filename ->
    rawData <- Task.await (File.readUtf8 filename)
 settings &lt;-