sheet-parser-hs/app/Main.hs

13 lines
290 B
Haskell
Raw Normal View History

2023-11-09 22:44:20 +01:00
module Main where
import DND.Sheet.Parser
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
listSkills sheet