2023-11-09 22:44:20 +01:00
|
|
|
module Main where
|
|
|
|
|
2023-11-10 16:38:49 +01:00
|
|
|
import DND.Sheet.Parser
|
2024-11-19 10:40:42 +01:00
|
|
|
import DND.Dice
|
2023-11-09 22:44:20 +01:00
|
|
|
|
|
|
|
testfile :: FilePath
|
|
|
|
testfile = "./example.json"
|
|
|
|
|
|
|
|
main :: IO ()
|
2023-11-10 16:38:49 +01:00
|
|
|
main = do
|
|
|
|
createExample testfile
|
|
|
|
sheet <- parseSheet testfile
|
|
|
|
putStrLn $ "wrote example character named \"" ++ getName sheet ++ "\" to: " ++ testfile
|
2024-11-19 10:40:42 +01:00
|
|
|
mapM_ putStrLn . getSkillNames $ sheet
|