git.iko.soy
/
rowtype-yoga/purescript-native
readme
files
commits
refs
on
golang
help
sign in
Fix tests that shouldn't import prelude
1fceac3
Gary Burgess
13 years ago
examples/manual/passing/Import.purs
+3
compare with golang
unified
split
@@ -1,5 +1,7 @@
1
module M1 where
1
module M1 where
2
2
3
+
import Prelude ()
4
+
3
id :: forall a. a -> a
5
id :: forall a. a -> a
4
id = \x -> x
6
id = \x -> x
5
7
@@ -7,6 +9,7 @@ module M1 where
7
9
8
module M2 where
10
module M2 where
9
11
12
+
import Prelude ()
10
import M1
13
import M1
11
14
12
main = \_ -> foo 42
15
main = \_ -> foo 42
examples/manual/passing/RedefinedFixity.purs
+6
@@ -1,15 +1,21 @@
1
module M1 where
1
module M1 where
2
2
3
+
import Prelude ()
4
+
3
($) f a = f a
5
($) f a = f a
4
6
5
infixr 1000 $
7
infixr 1000 $
6
8
7
module M2 where
9
module M2 where
8
10
11
+
import Prelude ()
12
+
9
import M1
13
import M1
10
14
11
module M3 where
15
module M3 where
12
16
17
+
import Prelude ()
18
+
13
import M1
19
import M1
14
import M2
20
import M2
15
21
examples/passing/Church.purs
+2
@@ -1,5 +1,7 @@
1
module Main where
1
module Main where
2
2
3
+
import Prelude ()
4
+
3
type List a = forall r. r -> (a -> r -> r) -> r
5
type List a = forall r. r -> (a -> r -> r) -> r
4
6
5
empty :: forall a. List a
7
empty :: forall a. List a
examples/passing/Conditional.purs
+2
@@ -1,5 +1,7 @@
1
module Main where
1
module Main where
2
2
3
+
import Prelude ()
4
+
3
fns = \f -> if f true then f else \x -> x
5
fns = \f -> if f true then f else \x -> x
4
6
5
not = \x -> if x then false else true
7
not = \x -> if x then false else true
examples/passing/Dollar.purs
+2
@@ -1,5 +1,7 @@
1
module Main where
1
module Main where
2
2
3
+
import Prelude ()
4
+
3
($) :: forall a b. (a -> b) -> a -> b
5
($) :: forall a b. (a -> b) -> a -> b
4
($) f x = f x
6
($) f x = f x
5
7
examples/passing/Monad.purs
+2
@@ -1,5 +1,7 @@
1
module Main where
1
module Main where
2
2
3
+
import Prelude ()
4
+
3
type Monad m = { return :: forall a. a -> m a
5
type Monad m = { return :: forall a. a -> m a
4
, bind :: forall a b. m a -> (a -> m b) -> m b }
6
, bind :: forall a b. m a -> (a -> m b) -> m b }
5
7
keys
esc to close
j k
move down, up
enter
open
esc
back, or up a level
1 2 3 4
readme, files, commits, refs
/
filter
y
copy the clone command
c
compare the chosen commit with another (or shift-click both)
?
show or hide this list