diff options
| author | Josh Rahm <joshuarahm@gmail.com> | 2024-02-08 22:04:31 -0700 |
|---|---|---|
| committer | Josh Rahm <joshuarahm@gmail.com> | 2024-02-08 22:04:31 -0700 |
| commit | 7adbf480555e803bded190b013b1d1f70ae471db (patch) | |
| tree | 3ac9c4d18ef477110e5d42ac0549c5391e3b8f68 /src/Main.hs | |
| parent | 0b1e24b85f527a36673836ccea68b4db3750cdf9 (diff) | |
| download | montis-7adbf480555e803bded190b013b1d1f70ae471db.tar.gz montis-7adbf480555e803bded190b013b1d1f70ae471db.tar.bz2 montis-7adbf480555e803bded190b013b1d1f70ae471db.zip | |
Just some minor changes. Proof of concept for state change.
Diffstat (limited to 'src/Main.hs')
| -rw-r--r-- | src/Main.hs | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/src/Main.hs b/src/Main.hs index 2d15fce..bdffd6f 100644 --- a/src/Main.hs +++ b/src/Main.hs @@ -1,18 +1,22 @@ {-# HLINT ignore "Use camelCase" #-} module Main (main) where -import Control.Monad.Writer (execWriter, MonadWriter (tell)) +import Control.Monad.Writer (MonadWriter (tell), execWriter) import Wetterhorn.Core foreign export ccall wetterhorn :: IO Wetterhorn + wetterhorn :: IO Wetterhorn wetterhorn = - initWetterhorn $ - WConfig "This is a string" - (do - (WState str _) <- getWState - wio $ putStrLn $ "Handle something!!! :) " ++ str) + initWetterhorn $ + WConfig + "This is a string" + ( do + (WState str i) <- getWState + wio $ putStrLn $ "Handle something!!! :) " ++ str ++ " " ++ show i + incrementState + ) main :: IO () main = putStrLn "This should be dynamically linked!\n" |