1- module System .ReadLine where
1+ module Node .ReadLine where
22
33import Data.Tuple
44import Control.Monad.Eff
@@ -11,7 +11,7 @@ foreign import data InputStream :: *
1111
1212foreign import data OutputStream :: *
1313
14- foreign import process :: { stderr :: OutputStream , stdout :: OutputStream , stdin :: System.ReadLine. InputStream }
14+ foreign import process :: { stderr :: OutputStream , stdout :: OutputStream , stdin :: InputStream }
1515
1616type Completer eff = String -> Eff eff (Tuple [String ] String )
1717
@@ -27,15 +27,15 @@ foreign import setLineHandler
2727 \ return readline;\
2828 \ };\
2929 \ };\
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
3131
3232foreign import prompt
3333 " function prompt(readline) {\
3434 \ return function() {\
3535 \ readline.prompt();\
3636 \ return readline;\
3737 \ };\
38- \};" :: forall eff . Interface -> Control.Monad. Eff. Eff (console :: Console | eff ) System.ReadLine. Interface
38+ \};" :: forall eff . Interface -> Eff (console :: Console | eff ) Interface
3939
4040foreign import setPrompt
4141 " function setPrompt(prompt) {\
@@ -47,7 +47,7 @@ foreign import setPrompt
4747 \ };\
4848 \ };\
4949 \ };\
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
5151
5252foreign import createInterface
5353 " function createInterface(input) {\
@@ -66,6 +66,6 @@ foreign import createInterface
6666 \ };\
6767 \ };\
6868 \ };\
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
7070
7171
0 commit comments