In your command-line run the following commands:
brew doctorbrew update
In your command-line run the following commands:
brew doctorbrew updateIn your command-line run the following commands:
brew doctorbrew update| {-# LANGUAGE InstanceSigs #-} | |
| module Haph (bfs) where | |
| import qualified Data.Set as Set | |
| import qualified Data.Map as Map | |
| import qualified Data.List.Ordered as O | |
| newtype AdjacencyList v = AdjacencyList (Map.Map v [v]) | |
| class Graph g where |
| /* | |
| * Concept for emulating higher-kinded types using Flow. Instead of passing | |
| * a type that has not been applied to parameters, this pattern passes | |
| * a type-level function that will map a parameter type to the desired | |
| * higher-kinded type applied to the given parameter. | |
| * | |
| * @flow | |
| */ | |
| // type-level function application |
| /** | |
| * This short program will encrypt the user password | |
| * and insert a new record into a mock database. | |
| */ | |
| const Reader = require('fantasy-readers'); | |
| const R = require('ramda'); | |
| const crypto = require('crypto'); | |
| // our mock database | |
| const database = [ |
| using System; | |
| using System.Collections; | |
| using System.Collections.Generic; | |
| /* | |
| A basic lens library for the purpose of demonstration. | |
| Implements a lens as the costate comonad coalgebra. | |
| This library is not complete. | |
| A more complete lens library would take from |
| /* Numerics for Doyle spirals. | |
| * Robin Houston, 2013 | |
| */ | |
| (function() { | |
| var pow = Math.pow, | |
| sin = Math.sin, | |
| cos = Math.cos, | |
| pi = Math.PI; | |
| // Pragmatic typed immutable.js records using typescript 2.1+ | |
| // Comment with any suggestions/improvements! | |
| import * as fs from 'fs' | |
| import { Record, Map } from 'immutable' | |
| type Stats = fs.Stats; | |
| // Define the basic shape. All properties should be readonly. This model | |
| // defines a folder because it seemed easy C: |
| // install @types/react-redux and other nonsense | |
| import * as React from 'react' | |
| import { connect } from 'react-redux' | |
| import { YourActualAppState } from './wherever-it-is.ts' | |
| export function mapStateToProps({ | |
| whatever | |
| }: YourActualAppState) { | |
| return { |
| module.exports = Maybe; | |
| function Maybe(x) { | |
| this._value = x; | |
| } | |
| Maybe.of = of; | |
| Maybe.empty = empty; | |
| var nothingValue = void 0; |