packageDocumentation /** Type alias to indicate the path of a file. */ export type FilePath = string ; /** Type alias to indicate the path of a directory. */ export type DirPath = string ; /**
 * Use this with `.catch()` on promises where the error condition is
 * already handled elsewhere (e.g. by an event or another promise).
 *
 * It will debug log the `Error` and a stack trace of the "floating
 * promise".
 */ export function passthroughErrorLogger ( err ) { console . debug ( 'Caught an unhandled promise rejection. The promise location is:\n' + new Error ( ) . stack + '\n\nThe error follows:' ) ; console . debug ( err ) ; } /**
 * Use this with `.catch()` on promises where the error is already
 * handled elsewhere. This handler does nothing except prevent an
 * eslint warning from appearing.
 */ export function ignorePromiseRejection ( _ ) { } /**
 * Format GHC RTS options for the command line.
 *
 * See: https://downloads.haskell.org/ghc/8.10.7/docs/html/users_guide/runtime_control.html#setting-rts-options-on-the-command-line
 */ export function makeRtsArgs ( rtsOpts ? ) { return Array . isArray ( rtsOpts ) && rtsOpts . length ? [ '+RTS' ] . concat ( rtsOpts as string [ ] ) . concat ( [ '-RTS' ] ) : [ ] ; }