Couple of handy Atom packages:
- https://atom.io/packages/elmjutsu
- https://atom.io/packages/html-to-elm
- https://atom.io/packages/language-elm2:33 PM
- The mandatory https://github.com/avh4/elm-format that integrates with Atom's "On-Save" Beauyify
module Main exposing (..) | |
type alias Rocket = | |
{} | |
type alias Point = | |
{ x : Int, y : Int } |
Couple of handy Atom packages:
module Main exposing (..) | |
import Html exposing (Html, div, li, text, ul) | |
import Json.Decode as Json exposing (Decoder, andThen, at, fail, int, list, map, nullable, string, succeed) | |
import Json.Decode.Pipeline exposing (custom, decode, hardcoded, optional, required) | |
import String exposing (join) | |
main : Html a | |
main = |
module Main exposing (..) | |
import Html exposing (Html, div, li, text, ul) | |
main : Html a | |
main = | |
div [] | |
[ div [] [ text <| "Showing contacts for language " ++ toString model.language ] | |
, viewContacts model.language model.contacts |
type alias WrappedItemKeyedbyUUids = Dict UUID (WebData Item) | |
type alias WrappedItems = Dict ItemId (WebData Item) | |
type alias Item | |
type alias Item = | |
{ | |
label : String | |
image : String | |
startingPrice : WebData Int | |
} | |
items : Dict ItemId (WebData Item) |
$output = $handler->post('', $request); | |
$bid = entity_load('bid', $output[0]['id'], TRUE); | |
$this->assertEqual($bid->amount, 200); |
type Vocab | |
= VocabMen String | |
| VocabWomen | |
type alias VocabMen = | |
{ name : string | |
} | |
type alias VocabWomen = | |
{ name : string |
permalink: "\/(.*)[^\/]$ |