Skip to content

Commit

Permalink
Attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpil committed Nov 29, 2019
1 parent d91ce16 commit 2613c3d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions attribute.gleam
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
-doc("Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
")
-type_error_hint(List(a), "You want an array")
-since("v0.5")
fn one() {
"Hello, world!"
}
4 changes: 3 additions & 1 deletion if_else.gleam
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
fn run() {
fn one() {
if is_ok() {
it_is_ok()
} else if is_alright() {
go()
} else {
whatever()
}
}

fn two() {
if {
is_ok() -> it_is_ok()
is_alright() -> go()
Expand Down

0 comments on commit 2613c3d

Please sign in to comment.