Formatting and refactor

This commit is contained in:
Nox Sluijtman 2024-11-19 10:40:42 +01:00
parent 7d8bf5d857
commit e07d859fe4
Signed by: Egg
SSH key fingerprint: SHA256:2sG9X3C7Xvq2svGumz1/k7cm8l4G9+qAtAeugqB4J9M
4 changed files with 18 additions and 10 deletions

View file

@ -1,6 +1,7 @@
module Main where
import DND.Sheet.Parser
import DND.Dice
testfile :: FilePath
testfile = "./example.json"
@ -10,4 +11,4 @@ main = do
createExample testfile
sheet <- parseSheet testfile
putStrLn $ "wrote example character named \"" ++ getName sheet ++ "\" to: " ++ testfile
listSkillNames sheet
mapM_ putStrLn . getSkillNames $ sheet