Update for PureScript 0.15 (#194)

* Update shell and packages

* Fix code for 0.15

* Fix tests

* Format

* Add check-pulp command

* Generate bowerfile

* Add check-pulp to CI

* Add nixfmt to formatting

* Fixup test helpers

* Take 2

* PR comments (#1)

* Nix cleanup from PR

* Use arrows functions

* Remove unnecessary step

Co-authored-by: Connor Prussin <connor@prussin.net>
This commit is contained in:
Thomas Honeyman
2022-05-04 17:02:29 -04:00
committed by GitHub
parent bc93c23f21
commit 42bf4475e0
52 changed files with 495 additions and 436 deletions

View File

@@ -1,7 +1,4 @@
'use strict';
import crypto from 'crypto';
const crypto = require('crypto');
exports.sha256sum = function(buffer) {
return crypto.createHash('sha256').update(buffer).digest('hex');
}
export const sha256sum = buffer =>
crypto.createHash('sha256').update(buffer).digest('hex');

View File

@@ -1,9 +1,10 @@
module Examples.BinaryRequest.Main where
import Prelude
import Effect.Console (log)
import HTTPure (Request, ResponseM, ServerM, ok, serve, toBuffer)
import Node.Buffer (Buffer)
import HTTPure (Request, ResponseM, ServerM, toBuffer, serve, ok)
foreign import sha256sum :: Buffer -> String