22 lines
424 B
Haskell
22 lines
424 B
Haskell
module Internal.Config
|
|
( readConfig
|
|
-- , readYaml
|
|
)
|
|
where
|
|
|
|
-- import Control.Exception
|
|
-- import Data.Yaml
|
|
import Dhall hiding (record)
|
|
import Internal.Types
|
|
|
|
readConfig :: FilePath -> IO Config
|
|
readConfig confpath = do
|
|
unfix <$> inputFile auto confpath
|
|
|
|
-- readYaml :: FromJSON a => FilePath -> IO a
|
|
-- readYaml p = do
|
|
-- r <- decodeFileEither p
|
|
-- case r of
|
|
-- Right a -> return a
|
|
-- Left e -> throw e
|