File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,3 +38,6 @@ timeLog = liftEffect <<< EffConsole.timeLog
3838
3939timeEnd :: forall m . MonadEffect m => String -> m Unit
4040timeEnd = liftEffect <<< EffConsole .timeEnd
41+
42+ clear :: forall m . MonadEffect m => m Unit
43+ clear = liftEffect EffConsole .clear
Original file line number Diff line number Diff line change @@ -48,3 +48,8 @@ exports.timeEnd = function (s) {
4848 return { } ;
4949 } ;
5050} ;
51+
52+ exports . clear = function ( ) {
53+ console . clear ( ) ;
54+ return { } ;
55+ } ;
Original file line number Diff line number Diff line change @@ -53,3 +53,6 @@ foreign import timeLog :: String -> Effect Unit
5353
5454-- | Stop a named timer and print time since it started in milliseconds.
5555foreign import timeEnd :: String -> Effect Unit
56+
57+ -- | Clears the console
58+ foreign import clear :: Effect Unit
You can’t perform that action at this time.
0 commit comments