mirror of
https://github.com/qfpl/applied-fp-course.git
synced 2024-11-26 06:38:40 +03:00
Fixes #61
Added some more breadcrumbs and indication of where to go next for some of the later levels.
This commit is contained in:
parent
a252316c26
commit
7df3a95c75
@ -107,3 +107,5 @@ liftEither
|
||||
-> AppM a
|
||||
liftEither =
|
||||
error "throwLeft not implemented"
|
||||
|
||||
-- Go to 'src/Level05/DB.hs' next.
|
||||
|
@ -99,3 +99,5 @@ deleteTopic
|
||||
-> AppM ()
|
||||
deleteTopic =
|
||||
error "Copy your completed 'deleteTopic' and refactor to match the new type signature"
|
||||
|
||||
-- Go to 'src/Level05/Core.hs' next.
|
||||
|
@ -4,4 +4,7 @@ Handling those `Either` values everywhere is a bit awkward, this exercise
|
||||
introduces our first monad transformer, ``ExceptT``. Further along, we will add
|
||||
the concept of a 'transformer stack' and what benefits it can provide.
|
||||
|
||||
Start in ``src/Level05/AppM.hs``.
|
||||
The steps for this level:
|
||||
1) ``src/Level05/AppM.hs``
|
||||
2) ``src/Level05/DB.hs``
|
||||
3) ``src/Level05/Core.hs``
|
||||
|
@ -50,3 +50,5 @@ parseJSONConfigFile
|
||||
-> IO ( Either ConfigError PartialConf )
|
||||
parseJSONConfigFile =
|
||||
error "parseJSONConfigFile not implemented"
|
||||
|
||||
-- Go to 'src/Level06/Conf.hs' next.
|
||||
|
@ -237,3 +237,6 @@ instance Monoid PartialConf where
|
||||
-- data structure.
|
||||
instance FromJSON PartialConf where
|
||||
parseJSON = error "parseJSON for PartialConf not implemented yet."
|
||||
|
||||
-- Go to 'src/Level06/Conf/File.hs' next
|
||||
|
||||
|
@ -96,10 +96,10 @@ instance MonadIO AppM where
|
||||
liftIO :: IO a -> AppM a
|
||||
liftIO = error "liftIO for AppM not implemented"
|
||||
|
||||
-- Move on to ``src/Level07/DB.hs`` after this
|
||||
|
||||
liftEither
|
||||
:: Either Error a
|
||||
-> AppM a
|
||||
liftEither =
|
||||
error "throwLeft not implemented"
|
||||
|
||||
-- Move on to ``src/Level07/DB.hs`` after this
|
||||
|
@ -95,3 +95,5 @@ deleteTopic
|
||||
-> AppM ()
|
||||
deleteTopic =
|
||||
error "Copy your completed 'deleteTopic' and refactor to match the new type signature"
|
||||
|
||||
-- Go on to 'src/Level07/Core.hs' next.
|
||||
|
@ -12,4 +12,7 @@ the information in manually in every instance.
|
||||
Since we already have an AppM type, we're extending with more functionality,
|
||||
this is what is known as 'stacking' monad transformers.
|
||||
|
||||
Start in ``src/Level07/AppM.hs``.
|
||||
The steps for this level:
|
||||
1) ``src/Level07/AppM.hs``
|
||||
2) ``src/Level07/DB.hs``
|
||||
3) ``src/Level07/Core.hs``
|
||||
|
Loading…
Reference in New Issue
Block a user