Skip to content

Instantly share code, notes, and snippets.

View Janiczek's full-sized avatar

Martin Janiczek Janiczek

View GitHub Profile
@Janiczek
Janiczek / elm-format-wrapper
Last active August 29, 2021 12:57 — forked from 4z3/elm-format-wrapper.nix
elm-format-wrapper that allows to ignore blocks of code
#!/usr/bin/env bash
# elm-format-wrapper 1.0.0
#
# Usage:
# elm-format-wrapper [--help] [--action=ACTION] PATH...
#
# Description:
# Format paths like elm-format, but allow ignoring blocks of code:
#
import Signal exposing (Signal, Address)
import Html exposing (Html, div, button, text)
import Html.Events exposing (onClick)
-- There would normally be "import StartApp.Simple as StartApp exposing (start)
-- but for learning purposes we roll our own at the bottom.
-- Check it out after grasping this Counter example!
-- Our Counter will
-- 1. display a number