diff --git a/spago.lock b/spago.lock index 1ad9374..4543e72 100644 --- a/spago.lock +++ b/spago.lock @@ -16,7 +16,6 @@ workspace: - foreign: ">=7.0.0 <8.0.0" - foreign-object: ">=4.1.0 <5.0.0" - integers: ">=6.0.0 <7.0.0" - - js-timers - lists: ">=7.0.0 <8.0.0" - maybe: ">=6.0.0 <7.0.0" - newtype: ">=5.0.0 <6.0.0" @@ -35,7 +34,6 @@ workspace: - tailrec: ">=6.1.0 <7.0.0" - transformers: ">=6.0.0 <7.0.0" - typelevel-prelude: ">=7.0.0 <8.0.0" - - unlift: ">=1.0.1 <2.0.0" - unsafe-coerce: ">=6.0.0 <7.0.0" test_dependencies: - console @@ -44,7 +42,6 @@ workspace: - arraybuffer-types - arrays - bifunctors - - catenable-lists - console - const - contravariant @@ -63,8 +60,6 @@ workspace: - foreign - foreign-object - formatters - - free - - freet - functions - functors - gen @@ -72,11 +67,9 @@ workspace: - integers - invariant - js-date - - js-timers - lazy - lists - maybe - - monad-control - newtype - node-buffer - node-event-emitter @@ -106,7 +99,6 @@ workspace: - typelevel-prelude - unfoldable - unicode - - unlift - unsafe-coerce extra_packages: {} packages: @@ -166,18 +158,6 @@ packages: - newtype - prelude - tuples - catenable-lists: - type: registry - version: 7.0.0 - integrity: sha256-76vYENhwF4BWTBsjeLuErCH2jqVT4M3R1HX+4RwSftA= - dependencies: - - control - - foldable-traversable - - lists - - maybe - - prelude - - tuples - - unfoldable console: type: registry version: 6.1.0 @@ -371,40 +351,6 @@ packages: - parsing - prelude - transformers - free: - type: registry - version: 7.1.0 - integrity: sha256-JAumgEsGSzJCNLD8AaFvuX7CpqS5yruCngi6yI7+V5k= - dependencies: - - catenable-lists - - control - - distributive - - either - - exists - - foldable-traversable - - invariant - - lazy - - maybe - - prelude - - tailrec - - transformers - - tuples - - unsafe-coerce - freet: - type: registry - version: 7.0.0 - integrity: sha256-zkL6wU4ZPq8xz1kGFxoliWqyhBksepMJTyA68VEBaJo= - dependencies: - - aff - - bifunctors - - effect - - either - - exists - - free - - prelude - - tailrec - - transformers - - tuples functions: type: registry version: 6.0.0 @@ -479,12 +425,6 @@ packages: - foreign - integers - now - js-timers: - type: registry - version: 6.1.0 - integrity: sha256-znHWLSSOYw15P5DTcsAdal2lf7nGA2yayLdOZ2t5r7o= - dependencies: - - effect lazy: type: registry version: 6.0.0 @@ -520,15 +460,6 @@ packages: - invariant - newtype - prelude - monad-control: - type: registry - version: 5.0.0 - integrity: sha256-bgfDW30wbIm70NR1Tvvh9P+VFQMDh1wK2sSJXCj/dZc= - dependencies: - - aff - - freet - - identity - - lists newtype: type: registry version: 5.0.0 @@ -852,23 +783,6 @@ packages: - foldable-traversable - maybe - strings - unlift: - type: registry - version: 1.0.1 - integrity: sha256-nbBCVV0fZz/3UHKoW11dcTwBYmQOIgK31ht2BN47RPw= - dependencies: - - aff - - effect - - either - - freet - - identity - - lists - - maybe - - monad-control - - prelude - - st - - transformers - - tuples unsafe-coerce: type: registry version: 6.0.0 diff --git a/spago.yaml b/spago.yaml index 93014cd..ea95833 100644 --- a/spago.yaml +++ b/spago.yaml @@ -10,7 +10,6 @@ package: strict: true pedanticPackages: true dependencies: - - js-timers - aff: ">=7.1.0 <8.0.0" - arrays: ">=7.3.0 <8.0.0" - bifunctors: ">=6.0.0 <7.0.0" @@ -42,7 +41,6 @@ package: - tailrec: ">=6.1.0 <7.0.0" - transformers: ">=6.0.0 <7.0.0" - typelevel-prelude: ">=7.0.0 <8.0.0" - - unlift: ">=1.0.1 <2.0.0" - unsafe-coerce: ">=6.0.0 <7.0.0" test: main: Test.Main diff --git a/src/Node.Stream.CSV.Parse.purs b/src/Node.Stream.CSV.Parse.purs index 155b12f..091f876 100644 --- a/src/Node.Stream.CSV.Parse.purs +++ b/src/Node.Stream.CSV.Parse.purs @@ -25,7 +25,6 @@ import Effect.Aff (Canceler(..), makeAff) import Effect.Aff.Class (class MonadAff, liftAff) import Effect.Class (liftEffect) import Effect.Exception (error) -import Effect.Timer (setTimeout) import Effect.Uncurried (mkEffectFn1) import Foreign (Foreign, unsafeToForeign) import Foreign.Object (Object) @@ -124,7 +123,6 @@ foreach stream cb = do liftAff $ makeAff \res -> do removeDataListener <- flip (Event.on dataH) stream \row -> void - $ setTimeout 0 $ flip catchError (res <<< Left) $ do cols <- liftMaybe (error "unreachable") =<< getOrInitColumnsMap stream