aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Suem.hs18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/Suem.hs b/src/Suem.hs
index bbdfa78..a6df56f 100644
--- a/src/Suem.hs
+++ b/src/Suem.hs
@@ -1,11 +1,21 @@
-module Suem (Config(..), suem) where
+module Suem (Config(..), ConfigSocket(..), suem) where
+
+data ConfigSocket = ConfigInet String | ConfigUnix String
data Config = Config {
freq :: Int,
ram :: Int,
- rom :: String
+ rom :: String,
+ s0 :: Maybe ConfigSocket,
+ s1 :: Maybe ConfigSocket,
+ s2 :: Maybe ConfigSocket,
+ s3 :: Maybe ConfigSocket,
+ s4 :: Maybe ConfigSocket,
+ s5 :: Maybe ConfigSocket,
+ s6 :: Maybe ConfigSocket,
+ s7 :: Maybe ConfigSocket
}
suem :: Config -> IO ()
-suem (Config _ _ r) = putStrLn $ "Loaded " ++ r ++ " into ROM."
-suem _ = return ()
+suem (Config _ _ r _ _ _ _ _ _ _ _) = putStrLn $ "Loaded " ++ r ++ " into ROM."
+suem _ = return ()