@@ -244,6 +244,7 @@ executable psc
244 hs-source-dirs: psc
244 hs-source-dirs: psc
245 other-modules: Paths_purescript
245 other-modules: Paths_purescript
246 ghc-options: -Wall -O2 -fno-warn-unused-do-bind -threaded -rtsopts "-with-rtsopts=-N"
246 ghc-options: -Wall -O2 -fno-warn-unused-do-bind -threaded -rtsopts "-with-rtsopts=-N"
247+ ld-options: -Wl,--as-needed
248executable psci
249executable psci
249 build-depends: base >=4 && <5, containers -any, directory -any, filepath -any,
250 build-depends: base >=4 && <5, containers -any, directory -any, filepath -any,
@@ -267,6 +268,7 @@ executable psci
267 PSCi.Printer
268 PSCi.Printer
268 Paths_purescript
269 Paths_purescript
269 ghc-options: -Wall -O2
270 ghc-options: -Wall -O2
271+ ld-options: -Wl,--as-needed
271executable psc-docs
273executable psc-docs
272 build-depends: base >=4 && <5, purescript -any,
274 build-depends: base >=4 && <5, purescript -any,
@@ -282,6 +284,7 @@ executable psc-docs
284 ghc-options: -Wall -O2
286 ghc-options: -Wall -O2
287+ ld-options: -Wl,--as-needed
286executable psc-publish
289executable psc-publish
287 build-depends: base >=4 && <5, purescript -any, bytestring -any, aeson -any, optparse-applicative -any
290 build-depends: base >=4 && <5, purescript -any, bytestring -any, aeson -any, optparse-applicative -any
@@ -290,6 +293,7 @@ executable psc-publish
290 buildable: True
293 buildable: True
291 hs-source-dirs: psc-publish
294 hs-source-dirs: psc-publish
292 ghc-options: -Wall -O2
295 ghc-options: -Wall -O2
296+ ld-options: -Wl,--as-needed
294executable psc-hierarchy
298executable psc-hierarchy
295 build-depends: base >=4 && <5, purescript -any, optparse-applicative >= 0.12.1,
299 build-depends: base >=4 && <5, purescript -any, optparse-applicative >= 0.12.1,
@@ -299,13 +303,12 @@ executable psc-hierarchy
299 other-modules: Paths_purescript
303 other-modules: Paths_purescript
300 buildable: True
304 buildable: True
301 hs-source-dirs: hierarchy
305 hs-source-dirs: hierarchy
303 ghc-options: -Wall -O2
306 ghc-options: -Wall -O2
307+ ld-options: -Wl,--as-needed
305executable psc-bundle
309executable psc-bundle
306 main-is: Main.hs
310 main-is: Main.hs
307 other-modules: Paths_purescript
311 other-modules: Paths_purescript
309 build-depends: base >=4 && <5,
312 build-depends: base >=4 && <5,
310 purescript -any,
313 purescript -any,
311 filepath -any,
314 filepath -any,
@@ -315,13 +318,13 @@ executable psc-bundle
315 transformers-compat -any,
318 transformers-compat -any,
316 optparse-applicative >= 0.12.1,
319 optparse-applicative >= 0.12.1,
317 Glob -any
320 Glob -any
318− ghc-options: -Wall -O2
319 hs-source-dirs: psc-bundle
321 hs-source-dirs: psc-bundle
322+ ghc-options: -Wall -O2
323+ ld-options: -Wl,--as-needed
321executable psc-ide-server
325executable psc-ide-server
322 main-is: Main.hs
326 main-is: Main.hs
323 other-modules: Paths_purescript
327 other-modules: Paths_purescript
325 build-depends: base >=4 && <5
328 build-depends: base >=4 && <5
326 , purescript -any
329 , purescript -any
327 , directory -any
330 , directory -any
@@ -335,21 +338,22 @@ executable psc-ide-server
335 , stm -any
338 , stm -any
336 , text -any
339 , text -any
337 , base-compat >=0.6.0
340 , base-compat >=0.6.0
338− ghc-options: -Wall -O2 -threaded
339 hs-source-dirs: psc-ide-server
341 hs-source-dirs: psc-ide-server
342+ ghc-options: -Wall -O2 -threaded
343+ ld-options: -Wl,--as-needed
341executable psc-ide-client
345executable psc-ide-client
342 main-is: Main.hs
346 main-is: Main.hs
343 other-modules: Paths_purescript
347 other-modules: Paths_purescript
345 build-depends: base >=4 && <5
348 build-depends: base >=4 && <5
346 , mtl -any
349 , mtl -any
347 , text -any
350 , text -any
348 , optparse-applicative >= 0.12.1
351 , optparse-applicative >= 0.12.1
349 , network -any
352 , network -any
350 , base-compat >=0.6.0
353 , base-compat >=0.6.0
351− ghc-options: -Wall -O2
352 hs-source-dirs: psc-ide-client
354 hs-source-dirs: psc-ide-client
355+ ghc-options: -Wall -O2
356+ ld-options: -Wl,--as-needed
354test-suite tests
358test-suite tests
355 build-depends: base >=4 && <5, containers -any, directory -any,
359 build-depends: base >=4 && <5, containers -any, directory -any,
@@ -359,7 +363,6 @@ test-suite tests
359 base-compat -any, haskeline >= 0.7.0.0, optparse-applicative -any,
363 base-compat -any, haskeline >= 0.7.0.0, optparse-applicative -any,
360 boxes -any, HUnit -any, hspec -any, hspec-discover -any, stm -any, text -any,
364 boxes -any, HUnit -any, hspec -any, hspec-discover -any, stm -any, text -any,
361 vector -any, utf8-string -any
365 vector -any, utf8-string -any
363 type: exitcode-stdio-1.0
366 type: exitcode-stdio-1.0
364 main-is: Main.hs
367 main-is: Main.hs
365 other-modules: TestUtils
368 other-modules: TestUtils
@@ -383,3 +386,5 @@ test-suite tests
383 PSCi.Types
386 PSCi.Types
384 buildable: True
387 buildable: True
385 hs-source-dirs: tests psci
388 hs-source-dirs: tests psci
390+ ld-options: -Wl,--as-needed