Skip to content

Instantly share code, notes, and snippets.

View miniBill's full-sized avatar

Leonardo Taglialegne miniBill

  • Italy
  • 17:58 (UTC +02:00)
View GitHub Profile
module Main exposing (main)
import Browser
import Html exposing (Html)
import Html.Attributes as Html
import Html.Events as Html
import List.Extra as List
type alias Model =
@miniBill
miniBill / SafeMod.elm
Last active May 27, 2019 22:58
elm-modular
module Modulus exposing (Divisor, R(..), R_1(..), R_2(..), R_3(..), R_4(..), R_5(..), R_6(..), R_7(..), R_8(..), R_9(..), d0, d1, d2, d3, d4, d5, d6, d7, d8, d9, f0, f1, f2, f3, f4, f5, f6, f7, f8, f9, modBySafe)
type R f p
= R0 f
| R1 f
| R2 f
| R3 f
| R4 f
| R5 f
@miniBill
miniBill / Codec.elm
Last active May 27, 2019 22:56
elm-codec
module Codec exposing
( Codec
, adt
, alternative
, alternative0
, alternative1
, alternative2
, always
, array
, bimap