Every time I tried to run this code, the compiler returns a 'not in scope' error for the variables redirectUrlGraphEmail
, redirectUrlGraphPost
, aboutContents
, and staticDir
:
routes :: [ (String, ServerPart Response)]
routes = [
("graph-fb", seeOther redirectUrlGraphEmail $ toResponse ""),
("post-fb", seeOther redirectUrlGraphPost $ toResponse ""),
("about", aboutResponse aboutContents),
("static", serveDirectory DisableBrowsing [] staticDir)]
These variables are declared by:
staticDir <- getStaticDir
redirectUrlGraphEmail <- retrieveAuthURL testUrl
redirectUrlGraphPost <- retrieveAuthURL testPostUrl
aboutContents <- LazyIO.readFile $ markdownPath ++ "README.md"
privacyContents <- LazyIO.readFile $ markdownPath ++ "PRIVACY.md"
but I am not sure where should I add these lines into the module. Any help here?