This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fs = require('fs'); | |
const util = require('util'); | |
const glob = require('glob'); | |
// UTILS | |
// join :: string -> [string] -> string | |
const join = (glue: string) => (xs: string[]): string => xs.join(glue); | |
// concatString :: string -> string -> string |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const timeoutChain = (fn, { ms } = { ms: 0 }) => { | |
const timer = { | |
id: null, | |
unsubscribe(done = () => {}) { | |
clearTimeout(this.id); | |
this.isRunning = false; | |
done(); | |
}, | |
isRunning: true, | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {fold, Monoid} from "fp-ts/Monoid"; | |
const enum EventProperties { | |
eventLabel = 'eventLabel', | |
eventContext = 'eventContext', | |
eventContent = 'eventContent', | |
eventLocation = 'eventLocation' | |
} | |
type EventAttributes = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
robots.hs:47:36: error: | |
• Couldn't match type ‘[Char]’ | |
with ‘((a1, b1, [Char]) -> t1) -> t1’ | |
Expected type: ((a1, b1, [Char]) -> ((a1, b1, [Char]) -> t1) -> t1) | |
-> ((((a1, b1, [Char]) -> t1) -> t1, b1, | |
((a1, b1, [Char]) -> t1) -> t1) | |
-> ((a1, b1, [Char]) -> t1) -> t1) | |
-> [Char] | |
Actual type: ((((a1, b1, [Char]) -> t1) -> t1, b1, | |
((a1, b1, [Char]) -> t1) -> t1) |