// foo.h
static inline bool use_foo = true;static: Limits the variable's linkage to the current translation unit. Each translation unit (source file including this header) will have its own separate instance ofuse_foo.
| module CanvasTexture exposing (canvasTexture) | |
| -- imports are weird for Native modules | |
| -- You import them as you would normal modules | |
| -- but you can't alias them nor expose stuff from them | |
| import Task exposing (Task) | |
| import WebGL exposing (Error, Texture) | |
| import Native.CanvasTexture | |
| -- this will be our function which returns a number plus one |
| -- | The minimum and maximum positive, finite floats. | |
| module FloatMinMax | |
| ( floatMin | |
| , floatMaxDenorm | |
| , floatMinNorm | |
| , floatMax | |
| ) | |
| where |