git.iko.soy
/
rowtype-yoga/purescript-native
readme
files
commits
refs
on
golang
help
sign in
Make `unit` a value
b2cfe6f
Gary Burgess
12 years ago
examples/passing/Unit.purs
+1
−1
compare with golang
unified
split
@@ -3,4 +3,4 @@ module Main where
3
import Prelude
3
import Prelude
4
import Debug.Trace
4
import Debug.Trace
5
5
6
−
main = print (unit "Hello world")
6
+
main = print (
const
unit
$
"Hello world")
prelude/prelude.purs
+2
−2
@@ -213,8 +213,8 @@ module Prelude
213
213
214
data Unit = Unit {}
214
data Unit = Unit {}
215
215
216
−
unit ::
forall a. a ->
Unit
216
+
unit :: Unit
217
−
unit =
const (
Unit {}
)
217
+
unit = Unit {}
218
218
219
infix 4 ==
219
infix 4 ==
220
infix 4 /=
220
infix 4 /=
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