mirror of
https://github.com/qfpl/applied-fp-course.git
synced 2024-11-23 11:54:36 +03:00
00e02a3f9d
Made the error management for loading the JSON config file work as one might expect it should. Expanded the error reporting expectations to include specific file reading and JSON decoding errors. The difficulties that will be had in handling the multiple either values will motivate latter sections RE ExceptT (EitherT) transformers. However there is nothing here that should be beyond people that do not know how transformers work. Added more doctests to the different moving parts to make things a bit clearer. Added doctests to the cabal files and included a 'doctests.hs' to the tests section. default.nix files have been updated with the bonus dependency.
10 lines
122 B
Haskell
10 lines
122 B
Haskell
module Main where
|
|
|
|
import Test.DocTest (doctest)
|
|
|
|
main :: IO ()
|
|
main = doctest
|
|
[ "-isrc"
|
|
, "src/FirstApp/Conf.hs"
|
|
]
|