There was an error while loading. Please reload this page.
1 parent 46fb855 commit a856fd2Copy full SHA for a856fd2
tut01/src/Main.purs
@@ -1,6 +1,4 @@
1
-module Main
2
- ( nextCharForNumberString
3
- ) where
+module Main where
4
5
import Prelude
6
@@ -48,8 +46,7 @@ nextCharForNumberString'' =
48
46
>>> (+) 1
49
47
>>> fromCharCode
50
>>> fromMaybe ' '
51
- >>>
52
- singleton
+ >>> singleton
53
54
-- But when mixing categories (i.e., Box, Maybe), we'll often use
55
-- composition by putting s into a box and mapping over it
@@ -61,8 +58,7 @@ nextCharForNumberString str =
61
58
# map (\i -> i + 1)
62
59
# map (\i -> fromMaybe ' ' $ fromCharCode i)
63
60
# map (\c -> toLower $ singleton c)
64
- #
65
- extract
+ # extract
66
67
main :: Effect Unit
68
main = do
0 commit comments