Created
October 2, 2017 09:02
-
-
Save anonymous/be8ceb9ddaa817124f676a13e390d5d0 to your computer and use it in GitHub Desktop.
pipeline
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"repository": "https://github.com/user/project.git", | |
"version": "1.0.0", | |
"elm-version": "0.18.0 <= v < 1.0.0", | |
"summary": "My first Ellie project.", | |
"license": "BSD3", | |
"source-directories": [ | |
"." | |
], | |
"exposed-modules": [], | |
"native-modules": false, | |
"dependencies": { | |
"elm-lang/core": "5.1.1 <= v < 6.0.0", | |
"elm-lang/html": "2.0.0 <= v < 3.0.0", | |
"matthewsj/elm-ordering": "1.1.0 <= v < 2.0.0" | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<style> | |
html { | |
background: #F7F7F7; | |
color: red; | |
} | |
</style> | |
</head> | |
<body> | |
<script> | |
var app = Elm.Main.fullscreen() | |
</script> | |
</body> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Main exposing (main) | |
import Html exposing (Html, text) | |
import Ordering exposing (..) | |
a : List Int | |
a = | |
[ 2, 28, 4, -9 ] | |
tuple : Int -> ( Int, Int, Int ) | |
tuple = | |
\x -> ( x, x * x, -x + 4 ) | |
type alias A = | |
{ foo : Int | |
, bar : Int | |
, baz : Maybe Int | |
} | |
toA : ( Int, Int, Int ) -> A | |
toA = | |
\( x, y, z ) -> | |
{ foo = x | |
, bar = y | |
, baz = | |
if z == 0 then | |
Just 88 | |
else | |
Just z | |
} | |
b : List ( Int, Int, Int ) | |
b = | |
List.map tuple a | |
c : List A | |
c = | |
List.map toA b | |
main : Html msg | |
main = | |
c | |
|> List.sortWith (Ordering.byField .foo) | |
|> List.reverse | |
|> List.reverse | |
|> toString | |
|> Html.text |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment