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:
parent
b6d7786f92
commit
92711550f1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user