sheet-parser-hs/app/Main.hs

15 lines
329 B
Haskell
Raw Normal View History

2023-11-09 22:44:20 +01:00
module Main where
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 ()
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