git.iko.soy/rowtype-yoga/purescript-native
on golang help sign in
Basic tests for module exports
7fde48fGary Burgess
examples/failing/ExportExplicit.pursnew file+16
@@ -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.pursnew 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"