git.iko.soy
/
rowtype-yoga/purescript-native
readme
files
commits
refs
on
golang
help
sign in
Basic tests for module exports
7fde48f
Gary Burgess
13 years ago
examples/failing/ExportExplicit.purs
new file
+16
compare with golang
unified
split
@@ -0,0 +1,16 @@
1
+
module M1 (X(..)) where
2
+
3
+
data X = X | Y
4
+
data Z = Z
5
+
6
+
module Main where
7
+
8
+
import M1
9
+
10
+
testX = X
11
+
testY = Y
12
+
13
+
-- should fail as Z is not exported from M1
14
+
testZ = Z
15
+
16
+
main = Debug.Trace.trace "Done"
examples/passing/ExportExplicit.purs
new file
+13
@@ -0,0 +1,13 @@
1
+
module M1 (X(X), Z) where
2
+
3
+
data X = X | Y
4
+
data Z = Z
5
+
6
+
module Main where
7
+
8
+
import M1
9
+
10
+
testX = X
11
+
testZ = Z
12
+
13
+
main = Debug.Trace.trace "Done"
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