Skip to content

Commit 5a8ca7a

Browse files
committed
Formatting & restructuring
1 parent 1f91086 commit 5a8ca7a

File tree

4 files changed

+16
-42
lines changed

4 files changed

+16
-42
lines changed

data/playground/haskell/fib.hs renamed to data/playground/haskell/Function.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ wot False = crash
1919
zot = undefined
2020

2121
pot :: a
22-
pot =
22+
pot =
2323
let kettle = undefined
2424
in kettle
2525

data/playground/haskell/RFCs.hs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- RFC: What should "arg" match?
2+
fst :: (a, b) -> a
3+
fst tup@(x, y) = x
4+
-- ^^^^^^^^^^ <- 1️⃣ the whole pattern
5+
-- ^^^ <- 2️⃣ only the name of the whole argument, if given
6+
-- ^^^ ^ ^ <- 3️⃣ all names in the pattern
7+
8+
-- RFC: What should "branch" match?
9+
foo = bar
10+
where
11+
bar = 1
12+
-- 1️⃣ `foo = bar` and `bar = 1`
13+
-- 2️⃣ `foo = bar where bar = 1`
14+
-- 3️⃣ `foo = bar where bar = 1` and `bar = 1`

queries/haskell.function.scm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,4 +408,4 @@
408408
)
409409
)
410410
.
411-
)
411+
)

queries/haskell.hs

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)