mirror of
https://github.com/qfpl/applied-fp-course.git
synced 2024-11-22 19:34:33 +03:00
Fixes #63
Add some more instruction regarding the logging function that is added in Level 07 AppM module.
This commit is contained in:
parent
4482150006
commit
20b19b1cb7
@ -18,7 +18,13 @@ import Level07.Types.Error (Error)
|
||||
-- are values, we're able to pass them around and place them on records like any
|
||||
-- other type.
|
||||
data Env = Env
|
||||
|
||||
-- We will add a function to take some 'Text' input and print it to the
|
||||
-- console as a crude form of logging. Construct a function that matches this
|
||||
-- type so you can include it when you create the 'Env'.
|
||||
{ envLoggingFn :: Text -> AppM ()
|
||||
|
||||
-- We're able to nest records to keep things neat and tidy.
|
||||
, envConfig :: Conf
|
||||
, envDB :: FirstAppDB
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user