bChiquet/elm-test-deps/1.0.0

Add

This module exposes a simple add function, as well as internals for test.

add : Int -> Int -> Int

This is exposed in the module and the package. |

add relies on an internalAdd function which is not exposed.

However, internalAdd is wrapped in forTest:

forTest : ForTest { internalAdd : Int -> Int -> Int }

This is exposed in the module and the package, but since ForTest is not exposed by the package, it is unusable outside of the package. |

forTest = ForTest { internalAdd = internalAdd }

see tests/Spec.elm to see how this is used. |