Good day.
I am working on chapter 7 of the book. I get the following error when I build chapter 7 source code(when running stack build).
/home/user/projects/hauth/src/Lib.hs:72:16: error:
• No instance for (MonadUnliftIO App) arising from a use of ‘run’
• In the expression: run le state
In an equation for ‘runner’: runner = run le state
In the expression:
do let runner = run le state
HTTP.main port runner
|
72 | let runner = run le state
| ^^^^^^^^^^^^
-- While building package hauth-0.1.0.0 using:
/home/tebogo/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:hauth exe:hauth-exe --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Your help will be highly appreciated.
Regards,
Tebogo.
Good day.
I am working on chapter 7 of the book. I get the following error when I build chapter 7 source code(when running stack build).
/home/user/projects/hauth/src/Lib.hs:72:16: error:
• No instance for (MonadUnliftIO App) arising from a use of ‘run’
• In the expression: run le state
In an equation for ‘runner’: runner = run le state
In the expression:
do let runner = run le state
HTTP.main port runner
|
72 | let runner = run le state
| ^^^^^^^^^^^^
-- While building package hauth-0.1.0.0 using:
/home/tebogo/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_2.4.0.1_ghc-8.6.5 --builddir=.stack-work/dist/x86_64-linux/Cabal-2.4.0.1 build lib:hauth exe:hauth-exe --ghc-options " -fdiagnostics-color=always"
Process exited with code: ExitFailure 1
Your help will be highly appreciated.
Regards,
Tebogo.