File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1616 " output"
1717 ],
1818 "dependencies" : {
19- "purescript-prelude" : " ^4.0 .0" ,
19+ "purescript-prelude" : " ^4.1 .0" ,
2020 "purescript-datetime" : " ^4.0.0" ,
21- "purescript-ordered-collections " : " ^1.0.0"
21+ "purescript-foreign-object " : " ^1.0.0"
2222 },
2323 "devDependencies" : {
2424 "purescript-psci-support" : " ^4.0.0"
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ import Prelude
2424import Data.Array ((!!))
2525import Data.Maybe (Maybe (..), fromMaybe )
2626import Data.Time.Duration (Milliseconds , Seconds )
27- import Data.Map ( Map , update )
27+ import Foreign.Object ( Object , update )
2828import Effect (Effect )
2929
3030type NetworkInterface = { address :: String
@@ -132,10 +132,10 @@ foreign import totalmem :: Effect Number
132132foreign import ostype :: Effect String
133133foreign import uptime :: Effect Seconds
134134foreign import networkInterfaces
135- :: Effect (Map String (Array NetworkInterface ))
136- foreign import userInfoImpl
135+ :: Effect (Object (Array NetworkInterface ))
136+ foreign import userInfoImpl
137137 :: forall a
138- . ((a -> Maybe a ) -> Map String a -> Map String a )
138+ . ((a -> Maybe a ) -> Object a -> Object a )
139139 -> Maybe a
140140 -> (a -> Maybe a )
141141 -> { encoding :: String }
Original file line number Diff line number Diff line change 11module Test.Main where
22
33import Prelude (Unit )
4- import Control.Monad.Eff ( Eff )
5- import Control.Monad.Eff. Console (CONSOLE , log )
4+ import Effect ( Effect )
5+ import Effect. Console (log )
66
7- main :: forall e . Eff ( console :: CONSOLE | e ) Unit
7+ main :: Effect Unit
88main = do
99 log " You should add some tests."
You can’t perform that action at this time.
0 commit comments