Skip to content

Instantly share code, notes, and snippets.

View knuton's full-sized avatar
🌱

Johannes Emerich knuton

🌱
View GitHub Profile
diff --git a/stack.yaml b/stack.yaml
index 2cfb16b..96a236e 100644
--- a/stack.yaml
+++ b/stack.yaml
@@ -7,3 +7,6 @@ extra-deps:
- Noise-1.0.6@sha256:7eb0d021e334ca2341a9cb51eac7d6f2c76b4e4e1a27264509b38264dc202b32,1994
- data-r-tree-0.6.0@sha256:10a25ef70e6779c3bf5128cd45d033482a370ea07e92ab1c82678675de01d870,3668
resolver: lts-18.19
+nix:
+ enable: true
@knuton
knuton / Loadable.elm
Last active May 5, 2022 15:17
Render SVG to PNG from Elm via ports
module Loadable exposing
( Loadable(..), toMaybe, withDefault, fromResult
, map, andThen, apply, map2, mapError
, isInit, isLoading, isLoaded, isError, isDone, isPending
)
{-| Model loadable values
This is inspired by: <http://blog.jenkster.com/2016/06/how-elm-slays-a-ui-antipattern.html>