1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-23 11:54:36 +03:00
applied-fp-course/level04/tests/doctests.hs
Sean Chalmers 00e02a3f9d Rebuilt Conf File Read Handling
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.
2017-09-12 11:21:27 +10:00

10 lines
122 B
Haskell

module Main where
import Test.DocTest (doctest)
main :: IO ()
main = doctest
[ "-isrc"
, "src/FirstApp/Conf.hs"
]