git.iko.soy
/
rowtype-yoga/purescript-native
readme
files
commits
refs
on
golang
help
sign in
Add tests for new type & class ref syntax
0c86e7f
Gary Burgess
11 years ago
examples/passing/ClassRefSyntax.purs
new file
+13
compare with golang
unified
split
@@ -0,0 +1,13 @@
1
+
module Lib (class X, go) where
2
+
3
+
class X a where
4
+
go :: a -> a
5
+
6
+
module Main where
7
+
8
+
import Lib (class X, go)
9
+
10
+
go' :: forall a. (X a) => a -> a
11
+
go' = go
12
+
13
+
main = Control.Monad.Eff.Console.log "Done"
examples/passing/TypeWithoutParens.purs
new file
+16
@@ -0,0 +1,16 @@
1
+
module Lib (X, Y) where
2
+
3
+
data X = X
4
+
type Y = X
5
+
6
+
module Main where
7
+
8
+
import Lib (X, Y)
9
+
10
+
idX :: X -> X
11
+
idX x = x
12
+
13
+
idY :: Y -> Y
14
+
idY y = y
15
+
16
+
main = Control.Monad.Eff.Console.log "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