Created
October 16, 2015 03:22
-
-
Save chrisortman/7af6c357e86951733c12 to your computer and use it in GitHub Desktop.
Elm why you no check type alias
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
import Html exposing (text) | |
type alias ID = Int | |
type alias Minute = Int | |
f : ID -> Int | |
f x = x * 2 | |
g : Minute -> Bool | |
g x = if x > 10 then True else False | |
poo : {x:ID, y:Minute} | |
poo = { x = 5, y = 10 } | |
a : ID | |
a = 5 | |
b : Minute | |
b = 10 | |
c = g a | |
main = | |
text (toString c) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment