0.1.10 • Published 7 years ago

@panosoft/elm-native-helpers v0.1.10

Weekly downloads
2
License
Unlicense
Repository
-
Last release
7 years ago

Elm Native Helpers

Helper functions for creating Native Elm code

Install

npm install @panosoft/elm-native-helpers

Usage

const E = {
	A2: A2,
	A3: A3,
	A4: A4,
	Scheduler: {
		nativeBinding: _elm_lang$core$Native_Scheduler.nativeBinding,
		succeed:  _elm_lang$core$Native_Scheduler.succeed,
		rawSpawn: _elm_lang$core$Native_Scheduler.rawSpawn
	}
};
const helper = require('@panosoft/elm-native-helpers/helper')(E);

Scoping

Normally, Elm code is all in the global space. But when run in Node, the Elm code gets brought in via the require function. This creates a private scope for Elm.

Since this package calls some Elm global functions, we need to pass them in from our Native code. That's why E is passed in.

0.1.10

7 years ago

0.1.9

8 years ago

0.1.8

8 years ago

0.1.7

8 years ago

0.1.6

8 years ago

0.1.5

8 years ago

0.1.4

8 years ago

0.1.3

8 years ago

0.1.2

8 years ago