Skip to content

Instantly share code, notes, and snippets.

@chrisortman
Created October 16, 2015 03:22
Show Gist options
  • Save chrisortman/7af6c357e86951733c12 to your computer and use it in GitHub Desktop.
Save chrisortman/7af6c357e86951733c12 to your computer and use it in GitHub Desktop.
Elm why you no check type alias
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