From 23eb68df38903ac3d6ef90e35960f13c9c6da95a Mon Sep 17 00:00:00 2001 From: Ian Hofmann-Hicks Date: Mon, 9 Jan 2017 21:45:14 -0800 Subject: [PATCH] move `funcs` folder to new `helpers` folder --- combinators/applyTo.js | 2 +- combinators/composeB.js | 2 +- combinators/constant.js | 2 +- combinators/flip.js | 2 +- combinators/reverseApply.js | 2 +- combinators/substitution.js | 2 +- crocks.js | 34 +++++++++++++-------------- crocks.spec.js | 34 +++++++++++++-------------- crocks/Arrow.js | 4 ++-- crocks/Const.js | 2 +- crocks/Either.js | 2 +- crocks/IO.js | 2 +- crocks/Identity.js | 2 +- crocks/List.js | 2 +- crocks/Maybe.js | 2 +- crocks/Pair.js | 2 +- crocks/Pred.js | 2 +- crocks/Reader.js | 2 +- crocks/Star.js | 4 ++-- crocks/State.js | 2 +- crocks/Unit.js | 2 +- crocks/Writer.js | 2 +- {funcs => helpers}/branch.js | 0 {funcs => helpers}/branch.spec.js | 0 {funcs => helpers}/compose.js | 0 {funcs => helpers}/compose.spec.js | 0 {funcs => helpers}/curry.js | 0 {funcs => helpers}/curry.spec.js | 0 {funcs => helpers}/curryN.js | 0 {funcs => helpers}/curryN.spec.js | 0 {funcs => helpers}/ifElse.js | 0 {funcs => helpers}/ifElse.spec.js | 0 {funcs => helpers}/inspect.js | 0 {funcs => helpers}/inspect.spec.js | 0 {funcs => helpers}/liftA2.js | 0 {funcs => helpers}/liftA2.spec.js | 0 {funcs => helpers}/liftA3.js | 0 {funcs => helpers}/liftA3.spec.js | 0 {funcs => helpers}/mconcat.js | 0 {funcs => helpers}/mconcat.spec.js | 0 {funcs => helpers}/mconcatMap.js | 0 {funcs => helpers}/mconcatMap.spec.js | 0 {funcs => helpers}/mreduce.js | 0 {funcs => helpers}/mreduce.spec.js | 0 {funcs => helpers}/mreduceMap.js | 0 {funcs => helpers}/mreduceMap.spec.js | 0 {funcs => helpers}/pipe.js | 0 {funcs => helpers}/pipe.spec.js | 0 {funcs => helpers}/safe.js | 0 {funcs => helpers}/safe.spec.js | 0 {funcs => helpers}/tryCatch.js | 0 {funcs => helpers}/tryCatch.spec.js | 0 {funcs => helpers}/unless.js | 0 {funcs => helpers}/unless.spec.js | 0 {funcs => helpers}/when.js | 0 {funcs => helpers}/when.spec.js | 0 internal/defineUnion.js | 2 +- monoids/All.js | 2 +- monoids/Any.js | 2 +- monoids/Assign.js | 2 +- monoids/Max.js | 2 +- monoids/Min.js | 2 +- monoids/Prod.js | 2 +- monoids/Sum.js | 2 +- pointfree/ap.js | 2 +- pointfree/bimap.js | 2 +- pointfree/chain.js | 2 +- pointfree/coalesce.js | 2 +- pointfree/concat.js | 2 +- pointfree/cons.js | 2 +- pointfree/contramap.js | 2 +- pointfree/either.js | 2 +- pointfree/evalWith.js | 2 +- pointfree/execWith.js | 2 +- pointfree/filter.js | 2 +- pointfree/first.js | 2 +- pointfree/map.js | 2 +- pointfree/merge.js | 2 +- pointfree/option.js | 2 +- pointfree/promap.js | 2 +- pointfree/reduce.js | 2 +- pointfree/runWith.js | 2 +- pointfree/second.js | 2 +- pointfree/sequence.js | 2 +- pointfree/swap.js | 2 +- pointfree/traverse.js | 2 +- test/LastMonoid.js | 2 +- 87 files changed, 87 insertions(+), 87 deletions(-) rename {funcs => helpers}/branch.js (100%) rename {funcs => helpers}/branch.spec.js (100%) rename {funcs => helpers}/compose.js (100%) rename {funcs => helpers}/compose.spec.js (100%) rename {funcs => helpers}/curry.js (100%) rename {funcs => helpers}/curry.spec.js (100%) rename {funcs => helpers}/curryN.js (100%) rename {funcs => helpers}/curryN.spec.js (100%) rename {funcs => helpers}/ifElse.js (100%) rename {funcs => helpers}/ifElse.spec.js (100%) rename {funcs => helpers}/inspect.js (100%) rename {funcs => helpers}/inspect.spec.js (100%) rename {funcs => helpers}/liftA2.js (100%) rename {funcs => helpers}/liftA2.spec.js (100%) rename {funcs => helpers}/liftA3.js (100%) rename {funcs => helpers}/liftA3.spec.js (100%) rename {funcs => helpers}/mconcat.js (100%) rename {funcs => helpers}/mconcat.spec.js (100%) rename {funcs => helpers}/mconcatMap.js (100%) rename {funcs => helpers}/mconcatMap.spec.js (100%) rename {funcs => helpers}/mreduce.js (100%) rename {funcs => helpers}/mreduce.spec.js (100%) rename {funcs => helpers}/mreduceMap.js (100%) rename {funcs => helpers}/mreduceMap.spec.js (100%) rename {funcs => helpers}/pipe.js (100%) rename {funcs => helpers}/pipe.spec.js (100%) rename {funcs => helpers}/safe.js (100%) rename {funcs => helpers}/safe.spec.js (100%) rename {funcs => helpers}/tryCatch.js (100%) rename {funcs => helpers}/tryCatch.spec.js (100%) rename {funcs => helpers}/unless.js (100%) rename {funcs => helpers}/unless.spec.js (100%) rename {funcs => helpers}/when.js (100%) rename {funcs => helpers}/when.spec.js (100%) diff --git a/combinators/applyTo.js b/combinators/applyTo.js index f66ea0b7c..8873b7677 100644 --- a/combinators/applyTo.js +++ b/combinators/applyTo.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // Applicator diff --git a/combinators/composeB.js b/combinators/composeB.js index a9ebba642..0b508fe8c 100644 --- a/combinators/composeB.js +++ b/combinators/composeB.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // Composition (Bluebird) diff --git a/combinators/constant.js b/combinators/constant.js index 16f0afcc2..e973fa32b 100644 --- a/combinators/constant.js +++ b/combinators/constant.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') // Constant (Kestrel) // constant :: a -> b -> a diff --git a/combinators/flip.js b/combinators/flip.js index 3407d3b93..73776f780 100644 --- a/combinators/flip.js +++ b/combinators/flip.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // Flip (Cardinal) diff --git a/combinators/reverseApply.js b/combinators/reverseApply.js index 575b8ecfb..00994acf9 100644 --- a/combinators/reverseApply.js +++ b/combinators/reverseApply.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // Reverse Application (Thrush) diff --git a/combinators/substitution.js b/combinators/substitution.js index 01327c843..0cce60cad 100644 --- a/combinators/substitution.js +++ b/combinators/substitution.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // Substitution (Starling) diff --git a/crocks.js b/crocks.js index c98692dea..d4261c21f 100644 --- a/crocks.js +++ b/crocks.js @@ -29,23 +29,23 @@ const monoids = { } const helpers = { - branch: require('./funcs/branch'), - compose: require('./funcs/compose'), - curry: require('./funcs/curry'), - curryN: require('./funcs/curryN'), - ifElse: require('./funcs/ifElse'), - inspect: require('./funcs/inspect'), - liftA2: require('./funcs/liftA2'), - liftA3: require('./funcs/liftA3'), - mconcat: require('./funcs/mconcat'), - mconcatMap: require('./funcs/mconcatMap'), - mreduce: require('./funcs/mreduce'), - mreduceMap: require('./funcs/mreduceMap'), - pipe: require('./funcs/pipe'), - safe: require('./funcs/safe'), - tryCatch: require('./funcs/tryCatch'), - unless: require('./funcs/unless'), - when: require('./funcs/when') + branch: require('./helpers/branch'), + compose: require('./helpers/compose'), + curry: require('./helpers/curry'), + curryN: require('./helpers/curryN'), + ifElse: require('./helpers/ifElse'), + inspect: require('./helpers/inspect'), + liftA2: require('./helpers/liftA2'), + liftA3: require('./helpers/liftA3'), + mconcat: require('./helpers/mconcat'), + mconcatMap: require('./helpers/mconcatMap'), + mreduce: require('./helpers/mreduce'), + mreduceMap: require('./helpers/mreduceMap'), + pipe: require('./helpers/pipe'), + safe: require('./helpers/safe'), + tryCatch: require('./helpers/tryCatch'), + unless: require('./helpers/unless'), + when: require('./helpers/when') } const pointFree = { diff --git a/crocks.spec.js b/crocks.spec.js index 75dc2b045..9fe94f863 100644 --- a/crocks.spec.js +++ b/crocks.spec.js @@ -10,23 +10,23 @@ const identity = require('./combinators/identity') const reverseApply = require('./combinators/reverseApply') const substitution = require('./combinators/substitution') -const branch = require('./funcs/branch') -const compose = require('./funcs/compose') -const curry = require('./funcs/curry') -const curryN = require('./funcs/curryN') -const ifElse = require('./funcs/ifElse') -const inspect = require('./funcs/inspect') -const liftA2 = require('./funcs/liftA2') -const liftA3 = require('./funcs/liftA3') -const mconcat = require('./funcs/mconcat') -const mconcatMap = require('./funcs/mconcatMap') -const mreduce = require('./funcs/mreduce') -const mreduceMap = require('./funcs/mreduceMap') -const pipe = require('./funcs/pipe') -const safe = require('./funcs/safe') -const tryCatch = require('./funcs/tryCatch') -const unless = require('./funcs/unless') -const when = require('./funcs/when') +const branch = require('./helpers/branch') +const compose = require('./helpers/compose') +const curry = require('./helpers/curry') +const curryN = require('./helpers/curryN') +const ifElse = require('./helpers/ifElse') +const inspect = require('./helpers/inspect') +const liftA2 = require('./helpers/liftA2') +const liftA3 = require('./helpers/liftA3') +const mconcat = require('./helpers/mconcat') +const mconcatMap = require('./helpers/mconcatMap') +const mreduce = require('./helpers/mreduce') +const mreduceMap = require('./helpers/mreduceMap') +const pipe = require('./helpers/pipe') +const safe = require('./helpers/safe') +const tryCatch = require('./helpers/tryCatch') +const unless = require('./helpers/unless') +const when = require('./helpers/when') const ap = require('./pointfree/ap') const bimap = require('./pointfree/bimap') diff --git a/crocks/Arrow.js b/crocks/Arrow.js index 5d30c6bc5..4b6bf2616 100644 --- a/crocks/Arrow.js +++ b/crocks/Arrow.js @@ -4,11 +4,11 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') +const compose = require('../helpers/compose') const identity = require('../combinators/identity') const constant = require('../combinators/constant') -const compose = require('../funcs/compose') const Pair = require('./Pair') diff --git a/crocks/Const.js b/crocks/Const.js index 892fb7a83..93e363fea 100644 --- a/crocks/Const.js +++ b/crocks/Const.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/crocks/Either.js b/crocks/Either.js index 2e84e0f32..d141b2ca9 100644 --- a/crocks/Either.js +++ b/crocks/Either.js @@ -11,7 +11,7 @@ const constant = require('../combinators/constant') const composeB = require('../combinators/composeB') const identity = require('../combinators/identity') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const _either = defineUnion({ Left: [ 'a' ], Right: [ 'b' ] }) diff --git a/crocks/IO.js b/crocks/IO.js index 51475fb62..a40fde2c9 100644 --- a/crocks/IO.js +++ b/crocks/IO.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const composeB = require('../combinators/composeB') const constant = require('../combinators/constant') diff --git a/crocks/Identity.js b/crocks/Identity.js index 6d972a319..c56fb429e 100644 --- a/crocks/Identity.js +++ b/crocks/Identity.js @@ -5,7 +5,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') const isApplicative = require('../internal/isApplicative') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') const composeB = require('../combinators/composeB') diff --git a/crocks/List.js b/crocks/List.js index 720bb49ec..b9f273375 100644 --- a/crocks/List.js +++ b/crocks/List.js @@ -8,7 +8,7 @@ const isApplicative = require('../internal/isApplicative') const constant = require('../combinators/constant') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const _concat = require('../pointfree/concat') const Maybe = require('./Maybe') diff --git a/crocks/Maybe.js b/crocks/Maybe.js index 33b18efde..40af9a5af 100644 --- a/crocks/Maybe.js +++ b/crocks/Maybe.js @@ -11,7 +11,7 @@ const constant = require('../combinators/constant') const identity = require('../combinators/identity') const composeB = require('../combinators/composeB') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const _maybe = defineUnion({ Nothing: [], Just: [ 'a' ] }) diff --git a/crocks/Pair.js b/crocks/Pair.js index d4995cb99..9d0d68d92 100644 --- a/crocks/Pair.js +++ b/crocks/Pair.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isFunction = require('../internal/isFunction') const isSemigroup = require('../internal/isSemigroup') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/crocks/Pred.js b/crocks/Pred.js index 4523e8006..f8f7a1e9f 100644 --- a/crocks/Pred.js +++ b/crocks/Pred.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') const composeB = require('../combinators/composeB') diff --git a/crocks/Reader.js b/crocks/Reader.js index a1f959b41..e41b1982e 100644 --- a/crocks/Reader.js +++ b/crocks/Reader.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const composeB = require('../combinators/composeB') const constant = require('../combinators/constant') diff --git a/crocks/Star.js b/crocks/Star.js index 2470ff08c..00513c263 100644 --- a/crocks/Star.js +++ b/crocks/Star.js @@ -4,10 +4,10 @@ const isFunction = require('../internal/isFunction') const isFunctor = require('../internal/isFunctor') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') -const compose = require('../funcs/compose') +const compose = require('../helpers/compose') const _type = constant('Star') diff --git a/crocks/State.js b/crocks/State.js index c706f7998..2a800824d 100644 --- a/crocks/State.js +++ b/crocks/State.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/crocks/Unit.js b/crocks/Unit.js index 3bcf2eccd..e9c32d1aa 100644 --- a/crocks/Unit.js +++ b/crocks/Unit.js @@ -4,7 +4,7 @@ const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/crocks/Writer.js b/crocks/Writer.js index fbf90eba7..ee0cbad17 100644 --- a/crocks/Writer.js +++ b/crocks/Writer.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isFunction = require('../internal/isFunction') const isMonoid = require('../internal/isMonoid') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/funcs/branch.js b/helpers/branch.js similarity index 100% rename from funcs/branch.js rename to helpers/branch.js diff --git a/funcs/branch.spec.js b/helpers/branch.spec.js similarity index 100% rename from funcs/branch.spec.js rename to helpers/branch.spec.js diff --git a/funcs/compose.js b/helpers/compose.js similarity index 100% rename from funcs/compose.js rename to helpers/compose.js diff --git a/funcs/compose.spec.js b/helpers/compose.spec.js similarity index 100% rename from funcs/compose.spec.js rename to helpers/compose.spec.js diff --git a/funcs/curry.js b/helpers/curry.js similarity index 100% rename from funcs/curry.js rename to helpers/curry.js diff --git a/funcs/curry.spec.js b/helpers/curry.spec.js similarity index 100% rename from funcs/curry.spec.js rename to helpers/curry.spec.js diff --git a/funcs/curryN.js b/helpers/curryN.js similarity index 100% rename from funcs/curryN.js rename to helpers/curryN.js diff --git a/funcs/curryN.spec.js b/helpers/curryN.spec.js similarity index 100% rename from funcs/curryN.spec.js rename to helpers/curryN.spec.js diff --git a/funcs/ifElse.js b/helpers/ifElse.js similarity index 100% rename from funcs/ifElse.js rename to helpers/ifElse.js diff --git a/funcs/ifElse.spec.js b/helpers/ifElse.spec.js similarity index 100% rename from funcs/ifElse.spec.js rename to helpers/ifElse.spec.js diff --git a/funcs/inspect.js b/helpers/inspect.js similarity index 100% rename from funcs/inspect.js rename to helpers/inspect.js diff --git a/funcs/inspect.spec.js b/helpers/inspect.spec.js similarity index 100% rename from funcs/inspect.spec.js rename to helpers/inspect.spec.js diff --git a/funcs/liftA2.js b/helpers/liftA2.js similarity index 100% rename from funcs/liftA2.js rename to helpers/liftA2.js diff --git a/funcs/liftA2.spec.js b/helpers/liftA2.spec.js similarity index 100% rename from funcs/liftA2.spec.js rename to helpers/liftA2.spec.js diff --git a/funcs/liftA3.js b/helpers/liftA3.js similarity index 100% rename from funcs/liftA3.js rename to helpers/liftA3.js diff --git a/funcs/liftA3.spec.js b/helpers/liftA3.spec.js similarity index 100% rename from funcs/liftA3.spec.js rename to helpers/liftA3.spec.js diff --git a/funcs/mconcat.js b/helpers/mconcat.js similarity index 100% rename from funcs/mconcat.js rename to helpers/mconcat.js diff --git a/funcs/mconcat.spec.js b/helpers/mconcat.spec.js similarity index 100% rename from funcs/mconcat.spec.js rename to helpers/mconcat.spec.js diff --git a/funcs/mconcatMap.js b/helpers/mconcatMap.js similarity index 100% rename from funcs/mconcatMap.js rename to helpers/mconcatMap.js diff --git a/funcs/mconcatMap.spec.js b/helpers/mconcatMap.spec.js similarity index 100% rename from funcs/mconcatMap.spec.js rename to helpers/mconcatMap.spec.js diff --git a/funcs/mreduce.js b/helpers/mreduce.js similarity index 100% rename from funcs/mreduce.js rename to helpers/mreduce.js diff --git a/funcs/mreduce.spec.js b/helpers/mreduce.spec.js similarity index 100% rename from funcs/mreduce.spec.js rename to helpers/mreduce.spec.js diff --git a/funcs/mreduceMap.js b/helpers/mreduceMap.js similarity index 100% rename from funcs/mreduceMap.js rename to helpers/mreduceMap.js diff --git a/funcs/mreduceMap.spec.js b/helpers/mreduceMap.spec.js similarity index 100% rename from funcs/mreduceMap.spec.js rename to helpers/mreduceMap.spec.js diff --git a/funcs/pipe.js b/helpers/pipe.js similarity index 100% rename from funcs/pipe.js rename to helpers/pipe.js diff --git a/funcs/pipe.spec.js b/helpers/pipe.spec.js similarity index 100% rename from funcs/pipe.spec.js rename to helpers/pipe.spec.js diff --git a/funcs/safe.js b/helpers/safe.js similarity index 100% rename from funcs/safe.js rename to helpers/safe.js diff --git a/funcs/safe.spec.js b/helpers/safe.spec.js similarity index 100% rename from funcs/safe.spec.js rename to helpers/safe.spec.js diff --git a/funcs/tryCatch.js b/helpers/tryCatch.js similarity index 100% rename from funcs/tryCatch.js rename to helpers/tryCatch.js diff --git a/funcs/tryCatch.spec.js b/helpers/tryCatch.spec.js similarity index 100% rename from funcs/tryCatch.spec.js rename to helpers/tryCatch.spec.js diff --git a/funcs/unless.js b/helpers/unless.js similarity index 100% rename from funcs/unless.js rename to helpers/unless.js diff --git a/funcs/unless.spec.js b/helpers/unless.spec.js similarity index 100% rename from funcs/unless.spec.js rename to helpers/unless.spec.js diff --git a/funcs/when.js b/helpers/when.js similarity index 100% rename from funcs/when.js rename to helpers/when.js diff --git a/funcs/when.spec.js b/helpers/when.spec.js similarity index 100% rename from funcs/when.spec.js rename to helpers/when.spec.js diff --git a/internal/defineUnion.js b/internal/defineUnion.js index e00318da1..770b64a4f 100644 --- a/internal/defineUnion.js +++ b/internal/defineUnion.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const constant = require('../combinators/constant') const argsArray = require('./argsArray') diff --git a/monoids/All.js b/monoids/All.js index 1f194631a..e844089e2 100644 --- a/monoids/All.js +++ b/monoids/All.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isFunction = require('../internal/isFunction') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Any.js b/monoids/Any.js index 750e13b12..9294139ed 100644 --- a/monoids/Any.js +++ b/monoids/Any.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isFunction = require('../internal/isFunction') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Assign.js b/monoids/Assign.js index a45c55430..479299535 100644 --- a/monoids/Assign.js +++ b/monoids/Assign.js @@ -6,7 +6,7 @@ const isObject = require('../internal/isObject') const isFunction = require('../internal/isFunction') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Max.js b/monoids/Max.js index d46a58566..a3591d1a7 100644 --- a/monoids/Max.js +++ b/monoids/Max.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isNumber = require('../internal/isNumber') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Min.js b/monoids/Min.js index d3d7c7615..bf205007a 100644 --- a/monoids/Min.js +++ b/monoids/Min.js @@ -5,7 +5,7 @@ const isType = require('../internal/isType') const isNumber = require('../internal/isNumber') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Prod.js b/monoids/Prod.js index a06d31ef2..f09036d8f 100644 --- a/monoids/Prod.js +++ b/monoids/Prod.js @@ -6,7 +6,7 @@ const isNumber = require('../internal/isNumber') const isFunction = require('../internal/isFunction') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/monoids/Sum.js b/monoids/Sum.js index 0dd00d6b8..fd0f7e3a7 100644 --- a/monoids/Sum.js +++ b/monoids/Sum.js @@ -6,7 +6,7 @@ const isNumber = require('../internal/isNumber') const isFunction = require('../internal/isFunction') const isNil = require('../internal/isNil') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const constant = require('../combinators/constant') diff --git a/pointfree/ap.js b/pointfree/ap.js index 34655cb91..74a462e97 100644 --- a/pointfree/ap.js +++ b/pointfree/ap.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // ap :: Applicative m => m a -> m (a -> b) -> m b diff --git a/pointfree/bimap.js b/pointfree/bimap.js index 6c4e13339..f4042d4c3 100644 --- a/pointfree/bimap.js +++ b/pointfree/bimap.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function bimap(f, g, m) { diff --git a/pointfree/chain.js b/pointfree/chain.js index c6d0704a0..84d360354 100644 --- a/pointfree/chain.js +++ b/pointfree/chain.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') // chain :: Chain m => (a -> m b) -> m a -> m b diff --git a/pointfree/coalesce.js b/pointfree/coalesce.js index 4ae1e36c1..0baaad7c2 100644 --- a/pointfree/coalesce.js +++ b/pointfree/coalesce.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function coalesce(f, g, m) { diff --git a/pointfree/concat.js b/pointfree/concat.js index ee9371cd5..20cdf63ff 100644 --- a/pointfree/concat.js +++ b/pointfree/concat.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isString = require('../internal/isString') const isSemigroup = require('../internal/isSemigroup') diff --git a/pointfree/cons.js b/pointfree/cons.js index f0306b8f7..2e96b7908 100644 --- a/pointfree/cons.js +++ b/pointfree/cons.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isArray = require('../internal/isArray') const isFunction = require('../internal/isFunction') diff --git a/pointfree/contramap.js b/pointfree/contramap.js index 6d21cdfd7..8b37d3a53 100644 --- a/pointfree/contramap.js +++ b/pointfree/contramap.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const composeB = require('../combinators/composeB') const isFunction = require('../internal/isFunction') diff --git a/pointfree/either.js b/pointfree/either.js index e1cf7e2b7..ed16e21f8 100644 --- a/pointfree/either.js +++ b/pointfree/either.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function either(lf, rf, m) { diff --git a/pointfree/evalWith.js b/pointfree/evalWith.js index 6ebabdf53..39a940763 100644 --- a/pointfree/evalWith.js +++ b/pointfree/evalWith.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function evalWith(x, m) { diff --git a/pointfree/execWith.js b/pointfree/execWith.js index 412e57aae..de240f6a9 100644 --- a/pointfree/execWith.js +++ b/pointfree/execWith.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function execWith(x, m) { diff --git a/pointfree/filter.js b/pointfree/filter.js index 7d31d7eef..5e17f02cb 100644 --- a/pointfree/filter.js +++ b/pointfree/filter.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') const isType = require('../internal/isType') diff --git a/pointfree/first.js b/pointfree/first.js index 7498d78b8..bcae111af 100644 --- a/pointfree/first.js +++ b/pointfree/first.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function first(fn, m) { diff --git a/pointfree/map.js b/pointfree/map.js index 8fb38ec48..56cabbcf8 100644 --- a/pointfree/map.js +++ b/pointfree/map.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const composeB = require('../combinators/composeB') const isFunction = require('../internal/isFunction') diff --git a/pointfree/merge.js b/pointfree/merge.js index ef9b85ec5..5fba307dc 100644 --- a/pointfree/merge.js +++ b/pointfree/merge.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function merge(fn, m) { diff --git a/pointfree/option.js b/pointfree/option.js index 0d105d1ec..a04dd5cfc 100644 --- a/pointfree/option.js +++ b/pointfree/option.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function option(x, m) { diff --git a/pointfree/promap.js b/pointfree/promap.js index c8279d83f..621ac9bb6 100644 --- a/pointfree/promap.js +++ b/pointfree/promap.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') const composeB = require('../combinators/composeB') diff --git a/pointfree/reduce.js b/pointfree/reduce.js index 3013bf58a..a4d78cc9c 100644 --- a/pointfree/reduce.js +++ b/pointfree/reduce.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function reduce(fn, init, m) { diff --git a/pointfree/runWith.js b/pointfree/runWith.js index 39d4f80ae..e5d0b45c5 100644 --- a/pointfree/runWith.js +++ b/pointfree/runWith.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function runWith(x, m) { diff --git a/pointfree/second.js b/pointfree/second.js index 26cabe44b..22c72c263 100644 --- a/pointfree/second.js +++ b/pointfree/second.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function second(fn, m) { diff --git a/pointfree/sequence.js b/pointfree/sequence.js index c6093d86f..7d17787df 100644 --- a/pointfree/sequence.js +++ b/pointfree/sequence.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function sequence(af, m) { diff --git a/pointfree/swap.js b/pointfree/swap.js index a5ebb5569..c781401ed 100644 --- a/pointfree/swap.js +++ b/pointfree/swap.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function swap(f, g, m) { diff --git a/pointfree/traverse.js b/pointfree/traverse.js index 8903c5fab..2b97ac211 100644 --- a/pointfree/traverse.js +++ b/pointfree/traverse.js @@ -1,7 +1,7 @@ /** @license ISC License (c) copyright 2016 original and current authors */ /** @author Ian Hofmann-Hicks (evil) */ -const curry = require('../funcs/curry') +const curry = require('../helpers/curry') const isFunction = require('../internal/isFunction') function traverse(fn, af, m) { diff --git a/test/LastMonoid.js b/test/LastMonoid.js index 2881cc13a..1179fac48 100644 --- a/test/LastMonoid.js +++ b/test/LastMonoid.js @@ -1,6 +1,6 @@ const identity = require('../combinators/identity') const constant = require('../combinators/constant') -const _inspect = require('../funcs/inspect') +const _inspect = require('../helpers/inspect') const _type = constant('Last')