git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Fix tests that shouldn't import prelude
1fceac3Gary Burgess
examples/manual/passing/Import.purs+3
@@ -1,5 +1,7 @@
1module M1 where
1module 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
8module M2 where
10module 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 @@
1module M1 where
1module M1 where
2
2
3+import Prelude ()
4+
3($) f a = f a
5($) f a = f a
4
6
5infixr 1000 $
7infixr 1000 $
6
8
7module M2 where
9module M2 where
8
10
11+import Prelude ()
12+
9import M1
13import M1
10
14
11module M3 where
15module M3 where
12
16
17+import Prelude ()
18+
13import M1
19import M1
14import M2
20import M2
15
21
examples/passing/Church.purs+2
@@ -1,5 +1,7 @@
1module Main where
1module 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 @@
1module Main where
1module 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 @@
1module Main where
1module 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 @@
1module Main where
1module 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