1
1
mirror of https://github.com/qfpl/applied-fp-course.git synced 2024-11-23 03:44:45 +03:00

Removed some give-aways

This commit is contained in:
Sean Chalmers 2017-08-31 15:26:58 +10:00
parent b6d7786f92
commit 92711550f1

View File

@ -63,14 +63,13 @@ runApp = do
-- final Either value.
prepareAppReqs
:: IO (Either StartUpError Env)
prepareAppReqs = do -- runExceptT $ do
prepareAppReqs = do
cfg <- initConf
db <- initDB cfg
pure $ Env cfg db
where
toStartUpErr e =
error "toStartUpErr not reimplemented"
-- ExceptT . fmap (first e)
-- Take our possibly failing configuration/db functions with their unique
-- error types and turn them into a consistently typed ExceptT. We can then