diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-02-11 23:29:09 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-02-11 23:29:09 -0700 |
| commit | 33197faf9b626acb6c2815786e6caa316df64a33 (patch) | |
| tree | 7961e2a00bbc9ce84c4d63aaa40271eac5f7cd4a /src/Config.hs | |
| parent | e008ac8d837ad11557c7625f3c311f230986d7f5 (diff) | |
| download | montis-33197faf9b626acb6c2815786e6caa316df64a33.tar.gz montis-33197faf9b626acb6c2815786e6caa316df64a33.tar.bz2 montis-33197faf9b626acb6c2815786e6caa316df64a33.zip | |
Move Main.hs to Config.hs and override _start()
Now if one tries to execute the built binary with 'stack run' or by just
executing it, a helpful message prints to the screen instead of the
segmentation fault that normally happens.
This technically makes things not portable to other architectures, but
it's all just window dressing and can be taken out if need be for other
architectures.
Diffstat (limited to 'src/Config.hs')
| -rw-r--r-- | src/Config.hs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Config.hs b/src/Config.hs new file mode 100644 index 0000000..14326cb --- /dev/null +++ b/src/Config.hs @@ -0,0 +1,8 @@ +module Config () where + +import Wetterhorn.Core + +foreign export ccall wetterhorn :: IO Wetterhorn + +wetterhorn :: IO Wetterhorn +wetterhorn = initWetterhorn defaultConfig |