roguelike/src/Dungeon/Loader.hs

8 lines
182 B
Haskell
Raw Normal View History

2021-02-19 18:52:43 +00:00
module Dungeon.Loader where
import Data.Aeson
import Data.ByteString.Lazy.UTF8 (fromString)
loadDungeon :: String -> IO (Either String Object)
loadDungeon = eitherDecodeFileStrict