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:
@@ -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');
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user