1
- module System .ReadLine where
1
+ module Node .ReadLine where
2
2
3
3
import Data.Tuple
4
4
import Control.Monad.Eff
@@ -11,7 +11,7 @@ foreign import data InputStream :: *
11
11
12
12
foreign import data OutputStream :: *
13
13
14
- foreign import process :: { stderr :: OutputStream , stdout :: OutputStream , stdin :: System.ReadLine. InputStream }
14
+ foreign import process :: { stderr :: OutputStream , stdout :: OutputStream , stdin :: InputStream }
15
15
16
16
type Completer eff = String -> Eff eff (Tuple [String ] String )
17
17
@@ -27,15 +27,15 @@ foreign import setLineHandler
27
27
\ return readline;\
28
28
\ };\
29
29
\ };\
30
- \};" :: forall eff . LineHandler eff -> Interface -> Control.Monad. Eff. Eff (console :: System.ReadLine. Console | eff ) System.ReadLine. Interface
30
+ \};" :: forall eff . LineHandler eff -> Interface -> Eff (console :: Console | eff ) Interface
31
31
32
32
foreign import prompt
33
33
" function prompt(readline) {\
34
34
\ return function() {\
35
35
\ readline.prompt();\
36
36
\ return readline;\
37
37
\ };\
38
- \};" :: forall eff . Interface -> Control.Monad. Eff. Eff (console :: Console | eff ) System.ReadLine. Interface
38
+ \};" :: forall eff . Interface -> Eff (console :: Console | eff ) Interface
39
39
40
40
foreign import setPrompt
41
41
" function setPrompt(prompt) {\
@@ -47,7 +47,7 @@ foreign import setPrompt
47
47
\ };\
48
48
\ };\
49
49
\ };\
50
- \}" :: forall eff . Prim. String -> Prim. Number -> Interface -> Control.Monad. Eff. Eff (console :: Console | eff ) System.ReadLine. Interface
50
+ \}" :: forall eff . Prim. String -> Prim. Number -> Interface -> Eff (console :: Console | eff ) Interface
51
51
52
52
foreign import createInterface
53
53
" function createInterface(input) {\
@@ -66,6 +66,6 @@ foreign import createInterface
66
66
\ };\
67
67
\ };\
68
68
\ };\
69
- \}" :: forall eff . InputStream -> OutputStream -> System.ReadLine. Completer eff -> Control.Monad. Eff. Eff (console :: System.ReadLine. Console | eff ) System.ReadLine. Interface
69
+ \}" :: forall eff . InputStream -> OutputStream -> Completer eff -> Eff (console :: Console | eff ) Interface
70
70
71
71
0 commit comments