add namespaces to names
This commit is contained in:
@@ -62,10 +62,10 @@ data IO : U -> U where
|
||||
MkIO : {a : U} -> (World -> Pair World a) -> IO a
|
||||
|
||||
-- TODO unified Number for now
|
||||
ptype Int
|
||||
ptype String
|
||||
|
||||
ptype Char
|
||||
|
||||
|
||||
|
||||
|
||||
ptype Array : U -> U
|
||||
|
||||
|
||||
@@ -4,4 +4,4 @@ import Prelude
|
||||
|
||||
pfunc fs : JSObject := `require('fs')`
|
||||
pfunc getArgs : List String := `arrayToList(String, process.argv)`
|
||||
pfunc readFile uses (fs) : (fn : String) -> IO String := `(fn) => (w) => MkIORes(Unit, fs.readFileSync(fn, 'utf8'), w)`
|
||||
pfunc readFile uses (fs MkIORes Unit) : (fn : String) -> IO String := `(fn) => (w) => MkIORes(Unit, fs.readFileSync(fn, 'utf8'), w)`
|
||||
|
||||
Reference in New Issue
Block a user